Giter VIP home page Giter VIP logo

spreadstream's People

Contributors

nopnop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

spreadstream's Issues

Add an option to determine the format of the columns while writing the google sheet from json file

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


Throw an error if the source sheet does not exists

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)

Update google dependencies?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.