3.0.5 • Published 2 years ago

parse-googlesheets v3.0.5

Weekly downloads
21
License
ISC
Repository
github
Last release
2 years ago

This is library for parse google sheets

example

import { parseGoogleSheets, number, string } from 'parse-googlesheets';

const schema = {
    dataProperty1: {
        parse: string,
        columnName: 'Column name 1'
    },
    dataProperty2: {
        parse: number,
        columnName: 'Column name 2'
    }
};

const myData = parseGoogleSheets(schema, googlesheets);

Where googlesheets - data from REST API from google sheets.

This example for sheets like this:

Column name 1Column name 2
some1
string2
field3

Output of JSON.stringify(myData)

[
  {
    "dataProperty1": "some",
    "dataProperty2": 1
  },
  {
    "dataProperty1": "string",
    "dataProperty2": 2
  },
  {
    "dataProperty1": "field",
    "dataProperty2": 3
  }
]
3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.5

2 years ago

3.0.0

2 years ago

2.2.0

3 years ago

2.0.4

3 years ago

2.1.0

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago