nodys / spreadstream Goto Github PK
View Code? Open in Web Editor NEWPipe your csv to google spreadsheet
Home Page: https://nodys.github.io/spreadstream
License: MIT License
Pipe your csv to google spreadsheet
Home Page: https://nodys.github.io/spreadstream
License: MIT License
Add an option to determine the format of the columns while writing the google sheet from json file.
An example:
{
"pName": "param1",
"pDesc": "",
"pref": "",
"pVal": 0.00001,
"pMinValue": 0.0000903,
"pMaxValue": "",
"pIsDeprecated": "False"
},
{
"pName": "param2",
"pDesc": "",
"pref": "",
"pVal": 1e-15,
"pMinValue": 1e-15,
"pMaxValue": "",
"pIsDeprecated": "False"
}
]
gives us:
pName | pDesc | pref | pVal | pMinValue | pMaxValue | pIsDeprecated
-- | -- | -- | -- | -- | -- | --
param1 | | | 0.00001 | 0.0000903 | | FALSE
param2 | | | 0 | 0 | | FALSE
and we want to determine the format of the table (or for pVal, pMinValue and pMaxValue column) to be "Scientific format" instead of "Automatic format":
pName | pDesc | pref | pVal | pMinValue | pMaxValue | pIsDeprecated
-- | -- | -- | -- | -- | -- | --
param1 | | | 1.00E-05 | 9.03E-05 | | FALSE
param2 | | | 1.00E-15 | 1.00E-15 | | FALSE
Currently, if the source sheet does not exist, spreadstream gracefully degrade to an empty stream. This may be confusing.
If the source sheet (either the document or the sheet) does not exists, spreadstream
should throw an error (and the graceful behaviour may be provided by a --graceful
option)
Hi, thanks for this great package!
I stumbled over this issue while deploying an app on Heroku (pify
was pruned from the dependencies, causing require('spreadstream')
to throw an error).
What do you think about updating the googleapis
and google-auth-library
dependencies to their current versions? I can submit a PR if that makes sense. The unit tests run fine after updating them, for what it's worth.
googleapis
is quite a few major releases ahead by now though, so you may want to examine the changelog to see if there are breaking changes that might affect spreadstream.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.