google-url-helper
- Parsing
- parseId ( url )
- parse ( url )
- Building
- url ( id , type )
Parsing
parseId ( url )
const gurl = var url = 'https://docs.google.com/document/d/1ss-FBQi1TGq8kiYLAjYkKx9672oxb9u_JJyL4lCVmls/edit' gurl// '1ss-FBQi1TGq8kiYLAjYkKx9672oxb9u_JJyL4lCVmls'
parse ( url )
const gurl = var url = 'https://docs.google.com/document/d/1ss-FBQi1TGq8kiYLAjYkKx9672oxb9u_JJyL4lCVmls/edit' gurl// {id: '1ss-FBQi1TGq8kiYLAjYkKx9672oxb9u_JJyL4lCVmls, type: 'document'}
The following url types can be parsed:
document
- Google Docsspreadsheet
- Google Sheetsform
- Google Formspresentation
- Google Slidesfolder
- Google Drive folderfile
- Google Drive file
Building
url ( id , type )
const gurl = var id = '1ss-FBQi1TGq8kiYLAjYkKx9672oxb9u_JJyL4lCVmls'var type = 'document' gurl// 'https://docs.google.com/document/d/1ss-FBQi1TGq8kiYLAjYkKx9672oxb9u_JJyL4lCVmls'
The following url types can be built
document
spreadsheet
presentation
folder
file
Note: forms cannot be built because they are specific to organizations.