Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
grunt-docs-archieml
Advanced tools
Readme
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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).