{"_id":"@aftership/google-spreadsheets","_rev":"7-9143123cd3cbc12555ad1bcd8e3f9d9e","name":"@aftership/google-spreadsheets","description":"Google Spreadsheet Data API for Node.js","dist-tags":{"latest":"1.2.0"},"versions":{"0.4.1":{"author":{"name":"Sam","email":"me@samcday.com.au","url":"http://samcday.com.au/"},"name":"@aftership/google-spreadsheets","description":"Google Spreadsheet Data API for Node.js","version":"0.4.1","license":"Unlicense","homepage":"https://github.com/samcday/node-google-spreadsheets","repository":{"type":"git","url":"git://github.com/samcday/node-google-spreadsheets.git"},"main":"lib/spreadsheets.js","engines":{"node":">= 0.10.0"},"dependencies":{"request":"^2.53.0","semver":"^4.3.0"},"devDependencies":{"istanbul":"~0.3.2","mocha":"^2.1.0","should":"^5.0.1"},"scripts":{"test":"[ -n \"$NO_COVERAGE\" ] && mocha || istanbul cover _mocha"},"jshintConfig":{"node":true,"mocha":true,"newcap":false},"gitHead":"804dd5699ecebd1e3f6ca44df12bdbdcf38b735f","bugs":{"url":"https://github.com/samcday/node-google-spreadsheets/issues"},"_id":"@aftership/google-spreadsheets@0.4.1","_shasum":"13be6c6e10a343f374eb651e37e2a675b29b54fd","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"aftership","email":"support@aftership.com"},"dist":{"shasum":"13be6c6e10a343f374eb651e37e2a675b29b54fd","tarball":"https://registry.npmjs.org/@aftership/google-spreadsheets/-/google-spreadsheets-0.4.1.tgz","integrity":"sha512-j+x2SZ1E3Sjd0BdIGKiYrSOzgA6dEsB0zG/bzv7KdEiwhLGDW4nV9+TjGkeCECncBn3JG4btixvpPe1qhPamXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9MYWJqySVSNVrAkKoC+HcfcqegDfR1c2UmwGtdiNiEQIhAMTgGJ+2ZJGDuRbV7+zEZh7m4ns/gb66xl6Xf8SMW5Jh"}]},"maintainers":[{"name":"aftership","email":"support@aftership.com"}],"directories":{}},"1.0.0":{"author":{"name":"Sam","email":"me@samcday.com.au","url":"http://samcday.com.au/"},"name":"@aftership/google-spreadsheets","description":"Google Spreadsheet Data API for Node.js","version":"1.0.0","license":"Unlicense","homepage":"https://github.com/AfterShip/node-google-spreadsheets","repository":{"type":"git","url":"git://github.com/AfterShip/node-google-spreadsheets.git"},"main":"lib/spreadsheets.js","engines":{"node":">= 0.10.0"},"dependencies":{"request":"^2.53.0","semver":"^4.3.0"},"devDependencies":{"istanbul":"~0.3.2","mocha":"^2.1.0","should":"^5.0.1"},"scripts":{"test":"[ -n \"$NO_COVERAGE\" ] && mocha || istanbul cover _mocha"},"jshintConfig":{"node":true,"mocha":true,"newcap":false},"gitHead":"6404213aa95b5253466f57cc27b2f6057a45c535","bugs":{"url":"https://github.com/AfterShip/node-google-spreadsheets/issues"},"_id":"@aftership/google-spreadsheets@1.0.0","_shasum":"7c2de77a35f2335a99c408cb618ae904d0d0568c","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"aftership","email":"support@aftership.com"},"dist":{"shasum":"7c2de77a35f2335a99c408cb618ae904d0d0568c","tarball":"https://registry.npmjs.org/@aftership/google-spreadsheets/-/google-spreadsheets-1.0.0.tgz","integrity":"sha512-hkUf0KPq2YeYQ6U3kM7fTAvlaFIV7xxs+G3MjSLhNutZxJInraSjDTZcFzq9DgwLLwtDyXjWj8oIh02fiPP1Tg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID9vp580jgrZ5c4R+yhHj5knwX4X+t3mgRUzuXWaMSexAiEAyHckC3JKKrvqSMnGsM+V/MWs5Y/pn7sghIMpE1HNHEE="}]},"maintainers":[{"name":"aftership","email":"support@aftership.com"}],"directories":{}},"1.1.0":{"author":{"name":"Sam","email":"me@samcday.com.au","url":"http://samcday.com.au/"},"name":"@aftership/google-spreadsheets","description":"Google Spreadsheet Data API for Node.js","version":"1.1.0","license":"Unlicense","homepage":"https://github.com/AfterShip/node-google-spreadsheets","repository":{"type":"git","url":"git://github.com/AfterShip/node-google-spreadsheets.git"},"main":"lib/spreadsheets.js","engines":{"node":">= 0.10.0"},"dependencies":{"request":"^2.53.0","semver":"^4.3.0"},"devDependencies":{"istanbul":"~0.3.2","mocha":"^2.1.0","should":"^5.0.1"},"scripts":{"test":"[ -n \"$NO_COVERAGE\" ] && mocha || istanbul cover _mocha"},"jshintConfig":{"node":true,"mocha":true,"newcap":false},"gitHead":"fef633615b86c83f5fc38d43d5f822f473481865","bugs":{"url":"https://github.com/AfterShip/node-google-spreadsheets/issues"},"_id":"@aftership/google-spreadsheets@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"aftership","email":"support@aftership.com"},"dist":{"integrity":"sha512-cWYMozTSKFODRCfdzBfMAzZQ5LeJ1xp9CgdV/IHfELFScQou3g4gOT9KT7KdKLAPDDGVy18VOYbGb/JDEaWAeA==","shasum":"758281ead808cd88b56ddba124fa83de5bb741a6","tarball":"https://registry.npmjs.org/@aftership/google-spreadsheets/-/google-spreadsheets-1.1.0.tgz","fileCount":6,"unpackedSize":45184,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcF2YCCRA9TVsSAnZWagAA58wQAJ1HQeVx/VUOgbS6Waki\nFNnW59RZiQuv1SVqPTqiW24s9Lr5WfsLEhzoQW9Nl81N7hN7vnxbJqtM/JRw\ncjBg4esIwTLrdEtgSQgOztptf4E6cjyAOMsAu5NJidC0D2OhcyTT39gVU/g3\nMsNZhGny7pWXyTW4TQlT/oGoZESTEo5MQabuU8RINx58L2s0bD97AGtBhIaV\nHMA0feAj6n+5EwklsEScWaD/gaPG5NGne5SN90OneQ7a/oaLw4XZjLnV4mts\nm82sy37i8J+mw6lYgpjnkzyOmvaYGu5Ku9/Q1fU1A134bTWY10/IBe69M905\n1oSuw/pOb4hHnPeyP+zQs+7o81vcezVw6WRSg7JKUrn0dUnthC9VKML0Flyz\n4lIBGBMEUdCs2kNNch9YdgwJM/NKh0syPDpNLIgEzGjFkoIwiyIbdK1qG1PI\n+UaHsvdEevnQgvvzY0MobSgGuVa4NvytlRi9dvgG/dJvQiUIjSC7cPLC3ouz\nF/p9rYS2lYLBIKqo79EnsSOm8zldfKnnV8TI0TLHN29JPda5JK4RZWOaMVuN\nKPSE0FskNc1bbB2Uv682tUikN1fr2idpyFFJSmvQEckF9+M+gNSUNQKUlRfg\nYL4qxwkztvzmpcx4lm2AbQmqPXVfv68ehwqayYVkoAzRHAz6C59n/xwh0rD/\nQXfm\r\n=Kqya\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoKiYRZLgVTo7w3uZLripCpKrlMcSsXzaPP45khqKcJgIgK35bBdbsqN7k3uw9L0fLBuY0/qjT4gMq4EgJ+4AQD/o="}]},"maintainers":[{"name":"aftership","email":"support@aftership.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/google-spreadsheets_1.1.0_1545037313610_0.804592072085706"},"_hasShrinkwrap":false},"1.2.0":{"author":{"name":"Sam","email":"me@samcday.com.au","url":"http://samcday.com.au/"},"name":"@aftership/google-spreadsheets","description":"Google Spreadsheet Data API for Node.js","version":"1.2.0","license":"Unlicense","homepage":"https://github.com/AfterShip/node-google-spreadsheets","repository":{"type":"git","url":"git://github.com/AfterShip/node-google-spreadsheets.git"},"main":"lib/spreadsheets.js","engines":{"node":">= 0.10.0"},"dependencies":{"request":"^2.53.0","semver":"^4.3.0"},"devDependencies":{"istanbul":"~0.3.2","mocha":"^2.1.0","should":"^5.0.1"},"scripts":{"test":"[ -n \"$NO_COVERAGE\" ] && mocha || istanbul cover _mocha"},"jshintConfig":{"node":true,"mocha":true,"newcap":false},"gitHead":"e33f4ced34541a2545d87535cfca5b511cfd7be6","bugs":{"url":"https://github.com/AfterShip/node-google-spreadsheets/issues"},"_id":"@aftership/google-spreadsheets@1.2.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"aftership","email":"support@aftership.com"},"dist":{"integrity":"sha512-2wu/sOzpx36ohQW3J6ZQYpBU/95/UanAzGinudCuVOnkF5svBobicdPcYvcfEgfPxxASwALb3/d9C90tWFCpVQ==","shasum":"0d434085ed9e82c97d3585666247a95fe75668f8","tarball":"https://registry.npmjs.org/@aftership/google-spreadsheets/-/google-spreadsheets-1.2.0.tgz","fileCount":6,"unpackedSize":45184,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcF2dVCRA9TVsSAnZWagAAV5gQAJMoWSZpTQ3dxwwPaGBw\nmifTsrsF5F1FAwFGYAM0MXMFisgRu3mf49do/YXJDsEsezX15ygtwB17cMpl\nTm5slT7esVJray5bGfiUbgRGVUCWBAb7sPZq2yug9TW1ue9abftLLOpVdRMi\nICyhRonSnricjdoo3dx+OqQc+Ut0tZ5kOYYyc16NpF8GzvMrEZud9rFN5fSq\nOlQTEAmY3vWgtMNN57miKCddLKbqLdKwq1eIjxz6DL+hI3YsmM7ISiGwW8I4\nYyb22LAEpC/20Uyk5BW+47hKPayS/I1DyzarLXxgRQ+a2cRWe59Qb591Z4wc\n38/gntz472oFr7dA6oeDA+BZgu66o2eCMfCl2TVDxsjLHUyeUiaD/ae6dXf1\n/oV4SuCgbyiePtjnoG7II+U9Eo7ebkAr1Ja/QZHFpf7NbHjeXpuIFOfERbGE\nlj5Xl0wqSgcl9bULuGWQsb32zSJx4egQfDCUypIZoYWOPFOhCJUcsCSqttXg\nYihfZ+OjckiMb+h9UbHNehd92wP62Y/+FfO3n7pmRJQqLVBY9NbHCQDHEoo0\n2pismsMTL38ed8l79ZFXee9GZBfdOFpjyE4mkFgqt80WhS+x1Cy4oU3jmLBh\nHYmnBmZL6SPl+0Lx3oJ44o8Y4Gt2Tl7mm8En2EEmz+LWquwuq6TufwRjJhuA\nPai4\r\n=DkV9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICgKPNMhQiLYzfLMHB62a9YuznBptPe7MXPr1TaJQ0+5AiAc4sdGleWW1uYt1hwg2pT/Qiv8HiSm2iN0y3kc83cnBg=="}]},"maintainers":[{"name":"aftership","email":"support@aftership.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/google-spreadsheets_1.2.0_1545037652802_0.09796358673999639"},"_hasShrinkwrap":false}},"readme":"# google-spreadsheets\n\nA simple Node.js library to read data from a Google Spreadsheet.\n\n## Installation\n\n```\nnpm install @aftership/google-spreadsheets\n```\n\n## Quick Example\n\n```js\n\tvar GoogleSpreadsheets = require(\"@aftership/google-spreadsheets\");\n\n\t// OPTIONAL: if you want to perform authenticated requests.\n\t// You must install this dependency yourself if you need it.\n\tvar google = require(\"googleapis\");\n\n\tvar oauth2Client = new google.auth.OAuth2(CLIENT_ID, CLIENT_SECRET, REDIRECT_URL);\n\t// Assuming you already obtained an OAuth2 token that has access to the correct scopes somehow...\n\toauth2Client.setCredentials({\n\t\taccess_token: ACCESS_TOKEN,\n\t\trefresh_token: REFRESH_TOKEN\n\t});\n\n\tGoogleSpreadsheets({\n\t\tkey: \"<spreadsheet key>\",\n\t\tauth: oauth2Client\n\t}, function(err, spreadsheet) {\n\t\tspreadsheet.worksheets[0].cells({\n\t\t\trange: \"R1C1:R5C5\"\n\t\t}, function(err, cells) {\n\t\t\t// Cells will contain a 2 dimensional array with all cell data in the\n\t\t\t// range requested.\n\t\t});\n\t});\n```\n\n## Authentication\n\nBy default, `google-spreadsheets` will attempt requests for a spreadsheet as an unauthenticated (anonymous) user. There are some caveats to this, which you should read about in the [Anonymous Requests](#Anonymous Requests) section below.\n\nAs shown in the example above, you can depend on Google's official [`googleapis`](https://github.com/google/google-api-nodejs-client) module and provide it to `google-spreadsheets`. This will allow you to easily make OAuth2 or JWT authenticated requests. See the `googleapis` project for more detailed information about configuring authentication.\n\n## API\n\n### GoogleSpreadsheets(opts, callback)\n\nLoads a `Spreadsheet` from the API. `opts` may contain the following:\n\n * `key`: *(required)* spreadsheet key\n * `auth`: *(optional)* authentication key from Google ClientLogin\n\n\n### GoogleSpreadsheets.rows(opts, callback)\n\nLoads a set of rows for a specific Spreadsheet from the API. Note that this call is direct, you must supply all auth, spreadsheet and worksheet information.\n\n`opts`:\n * `key`: *(required)* spreadsheet key\n * `worksheet`: *(required)* worksheet id. Can be a numeric index (starting from 1), or the proper string identifier for a worksheet.\n * `start`: *(optional)* starting index for returned results\n * `num`: *(optional)* number of results to return \n * `auth`: *(optional)* authentication key from Google ClientLogin\n * `sq`: *(optional)* structured query (not URL encoded) - https://developers.google.com/google-apps/spreadsheets/#sending_a_structured_query_for_rows \n\n\n### GoogleSpreadsheets.cells(opts, callback)\n\nLoads a group of cells for a specific Spreadsheet from the API. Note that this call is direct, you must supply all auth, spreadsheet and worksheet information.\n\n`opts`:\n * `key`: *(required)* spreadsheet key\n * `worksheet`: *(required)* worksheet id. Can be a numeric index (starting from 1), or the proper string identifier for a worksheet.\n * `range`: *(optional)* A range (in the format of R1C1) of cells to retrieve. e.g R15C2:R37C8. Range is inclusive.\n * `auth`: *(optional)* authentication key from Google ClientLogin\n\n### `Spreadsheet` object\n\nObject returned from `GoogleSpreadsheets()` call. This object has the following properties:\n * `title`: title of Spreadsheet\n * `updated`: date Spreadsheet was last updated.\n * `author`: object containing `name` and `email` of author of Spreadsheet.\n * `worksheets`: Array of Worksheets contained in this spreadsheet.\n\n### `Worksheet` object\n\nRepresents a single worksheet contained in a Spreadsheet. Obtain this via `Spreadsheet.worksheets`.\n\nA Worksheet has the following properties:\n * `rowCount`: number of rows in worksheet.\n * `colCount`: number of columns in worksheet.\n * `Worksheet.rows(opts, cb)`: convenience method to call `Spreadsheets.rows`, just pass in `start` and `num` - will automatically pass spreadsheet key, worksheet id, and auth info (if applicable) \n * `Worksheet.cols(opts, cb)`: convenience method to call `Spreadsheets.cols`, will automatically pass spreadsheet key, worksheet id, and auth info (if applicable). opts can contain `range`, etc.\n\n## Anonymous Requests\n\nAs mentioned earlier, `google-spreadsheets` defaults to issuing anonymous requests to the API. This will only work for reading Google Spreadsheets that have had link sharing enabled for \"Anyone on the internet\", and have been published to the web.\n\nFurthermore, the Google Spreadsheets Data API reference and developers guide is a little ambiguous about how you access a \"published\" public Spreadsheet.\n\nIf you wish to work with a Google Spreadsheet without authenticating, not only must the Spreadsheet in question be visible to the web, but it must also have been explicitly published using the \"Share\" button in the top right corner of the Google Spreadsheets GUI.\n\nYou may discover that a particular public spreadsheet you're trying to anonymously read may not have had this treatment, so your best bet is to issue authenticated requests for the spreadsheet (or contact the owner and ask them to fix their spreadsheet).\n\n## Further possibilities for this library\n\n * Edit functionality\n * Sorting/filtering on row listing\n * Filtering on cell listing.\n\n## Links\n\n * <http://code.google.com/apis/spreadsheets/>\n * <https://github.com/google/google-api-nodejs-client>\n\n## License\n\nnode-google-spreadsheets is free and unencumbered public domain software. For more information, see the accompanying [UNLICENSE](UNLICENSE) file.\n","maintainers":[{"name":"aftership","email":"support@aftership.com"}],"time":{"modified":"2022-06-12T14:20:44.316Z","created":"2015-11-02T09:30:29.909Z","0.4.1":"2015-11-02T09:30:29.909Z","1.0.0":"2015-11-02T09:56:35.031Z","1.1.0":"2018-12-17T09:01:53.749Z","1.2.0":"2018-12-17T09:07:32.921Z"},"homepage":"https://github.com/AfterShip/node-google-spreadsheets","repository":{"type":"git","url":"git://github.com/AfterShip/node-google-spreadsheets.git"},"author":{"name":"Sam","email":"me@samcday.com.au","url":"http://samcday.com.au/"},"bugs":{"url":"https://github.com/AfterShip/node-google-spreadsheets/issues"},"license":"Unlicense","readmeFilename":"README.md"}