npm.io
1.0.0 • Published 6 years ago

sheetyjs

Licence
ISC
Version
1.0.0
Deps
0
Size
2 kB
Vulns
0
Weekly
0
Stars
1

sheety.js

NPM package for sheety.co

Turn any Google sheet into an API instantly, for free. Power websites, apps, or whatever you like, all from a spreadsheet. Changes to your spreadsheet update your API in realtime. Neat.

Important note: The Google Sheet URL to use must be a valid Google Sheet CSV URL. Just follow these 3 simple steps as explained here.

Quick Start

Install the package like this:

npm i sheetyjs or yarn add sheety

And then use it like this:

import { getJsonUrl, getJsonObject } from 'sheetjs'

// this must be a valid Google Sheet CSV URL as mentioned above
const googleSheetUrl = ''

// you can get the json file url
const jsonUrl = await getJsonUrl(googleSheetUrl)

// or the json object right away
const jsonObject = await getJsonObject(googleSheetUrl)

Magic

Special thanks

Special thanks to @phillipcaudell for creating sheety.co