📗 SheetJS Community Edition -- Spreadsheet Data Toolkit
Go to file
2014-01-03 11:45:11 -05:00
test version bump 0.4.0: improvements across the board 2013-12-26 17:35:42 -05:00
.travis.yml Initial commit 2013-12-06 11:49:25 -05:00
LICENSE Initial commit 2013-12-06 11:49:25 -05:00
Makefile version bump 0.2.1: more support for implied types 2013-12-13 22:28:57 -05:00
package.json version bump 0.4.1: terminating infinite loop 2013-12-31 11:38:31 -05:00
README.md Initial commit 2013-12-06 11:49:25 -05:00
ssf_node.js support for LO Calc's 'GENERAL' format 2014-01-03 11:45:11 -05:00
ssf.js support for LO Calc's 'GENERAL' format 2014-01-03 11:45:11 -05:00
ssf.md support for LO Calc's 'GENERAL' format 2014-01-03 11:45:11 -05:00

SSF

SpreadSheet Format (SSF) is a pure-JS library to format data using ECMA-376 spreadsheet format codes (like those used in Microsoft Excel)

This is written in voc -- see ssf.md for code.

To build: voc ssf.md

Setup

In the browser:

<script src="ssf.js"></script>

In node:

var SSF = require('ssf');

Usage

.load(fmt, idx) sets custom formats (generally indices above 164)

.format(fmt, val) formats val using the format fmt. If fmt is of type number, the internal table (and custom formats) will be used. If fmt is a literal format, then it will be parsed and evaluated.

Notes

Format code 14 in the spec is broken; the correct format is 'mm/dd/yy' (dashes, not spaces)

License

Apache 2.0