@cryptosheet/extract-spreadsheet-id
v2.0.0
Published
Extracts the google spreadsheet id from a given spreadsheet url
Downloads
7
Readme
@cryptosheet/extract-spreadsheet-id
Extracts the google spreadsheet id from a given spreadsheet url
Usage
const extractSpreadsheetId = require('@cryptosheet/extract-spreadsheet-id')
const url = 'https://docs.google.com/spreadsheets/d/1RwWfhE9le3cBgqVDOqlpx3vcArSX2xx88oCCCC0C47g/edit#gid=0'
assert.strictEqual(extractSpreadsheetId(url), '1RwWfhE9le3cBgqVDOqlpx3vcArSX2xx88oCCCC0C47g')