
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Convert Google Spreadsheet contents to JSON. Also update Google spreadsheet from JSON data.
Convert Google Spreadsheet contents to JSON. Also update Google spreadsheet from JSON data.
% npm install ss2json
% ss2json --help
Usage: ss2json [options] [command]
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
get [options]
update [options]
% ss2json get --help
Usage: get [options]
Options:
-a, --auth [AUTH_JSON_FILE_PATH] JSON path for Google's authentication
-i, --id [SPREADSHEET_ID] Google Spreadsheet ID
-n, --name [SHEET_NAME] Sheet name in Google Spreadsheet
-h, --help
% ss2json update --help
Usage: ss2json update [options]
Options:
-a, --auth [AUTH_JSON_FILE_PATH] JSON path for Google's authentication
-i, --id [SPREADSHEET_ID] Google Spreadsheet ID
-n, --name [SHEET_NAME] Sheet name in Google Spreadsheet
-d, --data [DATA_JSON_FILE_PATH] JSON file path for update data
--autoAddSheet Add when there was no sheet.
-h, --help output usage information
Get the data from the spreadsheet and write it to data.json
.
% ss2json get \
-a AUTH_JSON_FILE_PATH \
-i SPREADSHEET_ID \
-n SHEET_NAME > ./data.json
You can also edit data.json
to update the spreadsheet.
% ss2json update \
-a AUTH_JSON_FILE_PATH \
-i SPREADSHEET_ID \
-n SHEET_NAME \
-d ./data.json
const ss2json = new (require('ss2json'))()
ss2json.convert({
authJsonPath: 'JSON path for Google\'s authentication',
spreadsheetId: 'Google Spreadsheet ID',
sheetName: 'Sheet name in Google Spreadsheet'
}).then((data) => {
console.log(data)
}).catch((err) => {
console.error(err)
})
const ss2json = new (require('ss2json'))()
ss2json.update({
authJsonPath: 'JSON path for Google\'s authentication',
spreadsheetId: 'Google Spreadsheet ID',
sheetName: 'Sheet name in Google Spreadsheet',
values: [
// 'Update data'
{ key1: 'value1', key2: 'value2' },
{ key1: 'value3', key2: 'value4' },
...
],
autoAdd: true // If true, the sheet will be added automatically if it doesn't exist.
}).then((result) => {
console.log(result)
})
AUTH_JSON_FILE_PATH
/ authJsonPath
Use GCP service account credentials. You first need to create a service account, download its json key.
FAQs
Convert Google Spreadsheet contents to JSON. Also update Google spreadsheet from JSON data.
The npm package ss2json receives a total of 20 weekly downloads. As such, ss2json popularity was classified as not popular.
We found that ss2json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.