git ssb

0+

cel-desktop / ssb-pkg



Tree: ca90b5ca0579ebdcc0635288bce4978e3fb200f5

Files: ca90b5ca0579ebdcc0635288bce4978e3fb200f5 / test / test-79-npm / node-xlsx / node-xlsx.js

526 bytesRaw
1'use strict';
2
3var path = require('path');
4var xlsx = require('node-xlsx');
5
6var xls = xlsx.parse(path.join(__dirname, 'registry.xls'));
7var ods = xlsx.parse(path.join(__dirname, 'ffc.ods'));
8
9var data = [
10 [ 1, 2, 3 ],
11 [ true, false, null, 'sheetjs' ],
12 [ 'foo', 'bar', new Date('2014-02-19T14:30Z'), '0.3' ],
13 [ 'baz', null, 'qux' ]
14];
15
16var buffer = xlsx.build([ { name: 'SheetName', data: data } ]);
17
18if ((xls[0].data.length > 50) &&
19 (ods[0].data.length > 30) &&
20 (buffer.length > 10)) {
21 console.log('ok');
22}
23

Built with git-ssb-web