Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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
The npm package grunt-docs-archieml receives a total of 0 weekly downloads. As such, grunt-docs-archieml popularity was classified as not popular.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.