2020-06-24 19:40:26 +00:00
|
|
|
/* ssf.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
|
|
/* eslint-env node */
|
|
|
|
/* eslint no-console:0 */
|
|
|
|
/*jshint node:true */
|
|
|
|
var X = require('ssf');
|
|
|
|
function run() {
|
|
|
|
var argv = process.argv.slice(2);
|
|
|
|
if (argv.length < 2 || argv[0] == "-h" || argv[0] == "--help") {
|
2020-06-27 22:42:21 +00:00
|
|
|
console.error("usage: ssf-cli <format> <value>");
|
2020-06-24 19:40:26 +00:00
|
|
|
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])) + "|");
|
|
|
|
}
|
|
|
|
|
2020-06-27 22:42:21 +00:00
|
|
|
module.exports = run;
|