Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
google-docs-fetch
Advanced tools
Fetch a Google Docs document as formatted, inlineable HTML.
npm install google-docs-fetch
Ensure that your document has link sharing on and set to be viewable by "Anyone wth the link". Retrieve your document ID (shown here as YOUR-DOC-ID
) from the generated link:
https://docs.google.com/document/d/YOUR-DOC-ID/edit?usp=sharing
In your script, you can then retrieve the contents of the document as HTML:
var fetch = require('google-docs-fetch');
fetch('YOUR-DOC-ID', function (err, content) {
if (!err) {
console.log(content);
}
});
The resulting HTML will resemble the following format, using a wrapper class to scope CSS styles:
<style type="text/css">
.page-content-YOUR-DOC-ID ... {...}
</style>
<div class="page-content-YOUR-DOC-ID">
...
</div>
FAQs
Fetch a Google Docs document as formatted, inlineable HTML.
The npm package google-docs-fetch receives a total of 2 weekly downloads. As such, google-docs-fetch popularity was classified as not popular.
We found that google-docs-fetch 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.