spreadsheet_decoder 0.3.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 85

Spreadsheet Decoder

Build Status Coverage Status Pub version

Spreadsheet Decoder is a library for decoding spreadsheets for ODS and XLSX files.

Usage

On server-side

import 'dart:io';
import 'package:spreadsheet_decoder/spreadsheet_decoder.dart';

main() {
  var bytes = new File.fromUri(fullUri).readAsBytesSync();
  var decoder = new SpreadsheetDecoder.decodeBytes(bytes);
  var table = decoder.tables['Sheet1'];
  var values = table.rows[0];
  ...
}

On client-side

import 'dart:html';
import 'package:spreadsheet_decoder/spreadsheet_decoder.dart';

main() {
  var reader = new FileReader();
  reader.onLoadEnd.listen((event) {
    var decoder = new SpreadsheetDecoder.decodeBytes(reader.result);
    var table = decoder.tables['Sheet1'];
    var values = table.rows[0];
    ...
  });
}

Features not yet supported

This implementation doesn't support following features:

  • annotations
  • spanned rows
  • spanned columns
  • hidden rows (visible in resulting tables)
  • hidden columns (visible in resulting tables)

For XLSX format, this implementation only supports native Excel format for date, time and boolean type conversion. In other words, custom format for date, time, boolean aren't supported and then file exported from LibreOffice as well.

0.3.2

Fix string parsing on xlsx file Fix sheet target selection

0.3.1

Fix misalignment of decoded value with empty columns

0.3.0

Output typed data (number, string, date, time, boolean)

0.2.0

Add XLSX decoder

0.1.0

Add ODS decoder

0.0.1

Initial release

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  spreadsheet_decoder: "^0.3.2"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:spreadsheet_decoder/spreadsheet_decoder.dart';
        
Version Uploaded Documentation Archive
0.3.2 Dec 17, 2016 Go to the documentation of spreadsheet_decoder 0.3.2 Download spreadsheet_decoder 0.3.2 archive
0.3.1 Aug 31, 2016 Go to the documentation of spreadsheet_decoder 0.3.1 Download spreadsheet_decoder 0.3.1 archive
0.3.0 Jan 4, 2016 Go to the documentation of spreadsheet_decoder 0.3.0 Download spreadsheet_decoder 0.3.0 archive
0.2.0 Jan 3, 2016 Go to the documentation of spreadsheet_decoder 0.2.0 Download spreadsheet_decoder 0.2.0 archive
0.4.3-alpha Jan 8, 2018 Go to the documentation of spreadsheet_decoder 0.4.3-alpha Download spreadsheet_decoder 0.4.3-alpha archive
0.4.2-alpha Dec 20, 2017 Go to the documentation of spreadsheet_decoder 0.4.2-alpha Download spreadsheet_decoder 0.4.2-alpha archive
0.4.1-alpha Dec 20, 2017 Go to the documentation of spreadsheet_decoder 0.4.1-alpha Download spreadsheet_decoder 0.4.1-alpha archive
0.4.0-alpha Dec 20, 2017 Go to the documentation of spreadsheet_decoder 0.4.0-alpha Download spreadsheet_decoder 0.4.0-alpha archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
76 / 100
Health:
Code health derived from static analysis. [more]
99 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
87 / 100
Overall score:
Weighted score of the above. [more]
85

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:spreadsheet_decoder/spreadsheet_decoder.dart.

Suggestions

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use spreadsheet_decoder.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.13.0 <2.0.0
archive ^1.0.27 1.0.33
xml ^2.4.4 2.6.0 3.0.0-alpha
Transitive dependencies
args 1.3.0
charcode 1.1.1
collection 1.14.5
convert 2.0.1
crypto 2.0.2+1
matcher 0.12.1+4
path 1.5.1
petitparser 1.7.0
stack_trace 1.9.1
typed_data 1.1.5
Dev dependencies
test ^0.12.0