xsheetjs/types/bin_ssf.ts
SheetJS f6de1799c4 version bump 0.10.2: infrastructure
- typescript definitions
- fixed vulnerable regexes (h/t @davisjam)
2018-02-20 22:35:31 -05:00

14 lines
526 B
TypeScript
Executable File

/* ssf.js (C) 2013-present SheetJS -- http://sheetjs.com */
/* eslint-env node */
/* eslint no-console:0 */
/*jshint node:true */
/// <reference types="../node_modules/@types/node/" />
import X = require('ssf');
const argv = process.argv.slice(2);
if(argv.length < 2 || argv[0] === "-h" || argv[0] === "--help") {
console.error("usage: ssf <format> <value>");
console.error("output: format_as_string|format_as_number|");
process.exit(0);
}
console.log(X.format(argv[0],argv[1]) + "|" + X.format(argv[0],+(argv[1])) + "|");