Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
grunt-docs-archieml
Advanced tools
Generate JSON file from Google Docs with ArchieML
npm install grunt-docs-archieml --save
Dashboard
and then click on ENABLE API
b. Click on DRIVE API
and if it’s not enabled just click on ENABLE
Credentials
Create credentials
, select oAuth client ID
and then select Web Application
https://developers.google.com/oauthplayground
as an authorized redirect URLClient ID
and Client Secret
readyStep 1
check all Drive API v3
Use your own OAuth credentials
Client ID
and Client secret
Step 1
section on the left and click Authorize APIs
Exchange authorization code for tokens
and copy the generated refresh token..credentials.json
and add the following with your info:{
"client_id": "your_CLIENT_ID",
"client_secret": "your_CLIENT_SECRET",
"oAuthTokens":{"refresh_token": "your_REFRESH_TOKEN"}
}
The file can be saved anywhere. Recommended that you save it in your home folder so that your your secret credentials are not uploaded with your project.
Grab the Google Doc ID of the ArchieML ready document
With the Google Doc open, go to File > Publish to web, click on
PUBLISH
under the Link section and copy the ID from the URL. The ID is in between the ‘d’ and ‘pub’ section of the URL.
Enable the plugin inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-docs-archieml');
Add the following within the grunt.initConfig()
and modify the options as needed.
grunt.initConfig({
gdocs: {
options: {
credentials:'.credentials.json',
docsID: 'GOOGLE_DOC_ID',
dest: 'DIRECTORY_FOR_JSON_FILE'
}
},
});
Default settings:
credentials
defaults to your home folder and will look for a .credentials.json filedocsID
has no defaultdest
defaults to a directory named json
$ grunt gdocs
Run the command to generate the JSON file. The file name will be the title of your Google Doc (all lowercase with underscores).
FAQs
Generate JSON file from Google Doc with ArchieML
We found that grunt-docs-archieml 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.