Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
esdoc-uploader
Advanced tools
A node module that connects with the ESDoc hosting service API in order to generage the documentation for your project.
I've been using ESDoc for a while now, and something great about it it's that they provide a hosting service for you documentation. You only need to have your project hosted on GitHub and provide them with its url, the service will take care of cloning your repo, finding your esdoc.json
file, generating the docs and publishing them, which I think it's pretty awesome!
Now, the only complication it's that every time you deploy a new change, you have to go to the page and submit a form with your repo url; but if you are working with continuous integration, doing that manually kind of kills the whole idea :P. and that's the reason of this project.
- | - |
---|---|
Package | esdoc-uploader |
Description | Upload your ESDoc documentation to doc.esdoc.org |
Node Version | >= v0.12.6 (You need >= v4.0.0 for the tests) |
You can install it using npm.
npm install esdoc-uploader --save_dev
$(npm bin)/esdoc-uploader
That's all, esdoc-uploader
will automatically look up your package.json
, get your repository information and start the process.
// Import the module class
var ESDocUploader = require('esdoc-uploader');
// Instantiate an object with a valid url
var uploader = new ESDocUploader('git@github.com:homer0/gulp-bundlerify.git');
// For extra precaution, check if the url is valid
if (uploader.canUpload()) {
uploader.upload(function(success, url) {
// Checks whether the process ended in success
if (success) {
// Logs a confirmation
console.log('Documents uploaded to: ', url);
} else {
console.log('Something went wrong, check the errors above');
}
});
}
Pretty simple right? it only has three public methods:
constructor
, which receives an already formatted GitHub url. Or you can ignore the argument and it will work like on the command line, looking for the information in your package.json
.canUpload()
: It checks if the upload process can be done or not.upload()
: It starts uploading everything to the API. It receives a callback parameter, which will be called when the process finishes. The callback will receive two arguments: a boolean
value to check if the process was successful, and in case it was, the url for where the documentation it's being hosted../hooks/install
npm run build
: Generate a new build of the module.npm test
: Run the module's unit tests.npm run coverage
: Run the unit tests and open the coverage report on the browser.npm run lint
: Lint the plugin's code with JSCS and ESLint.npm run docs
: Generate the project documentation.MIT. License file.
FAQs
Upload your ESDoc documentation to doc.esdoc.org
The npm package esdoc-uploader receives a total of 6 weekly downloads. As such, esdoc-uploader popularity was classified as not popular.
We found that esdoc-uploader 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.