Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
docket-parser
Advanced tools
npm install docket-parser
Use the example below and enter your code filenames into the array, making sure that module directives preceed all class and signature directives you want it to contain, and similarly including class directives before any signature directives you want it to contain. If you don't get the order right, Docket will output an error.
const docket = require('docket-parser');
const fileList = ['index.js', 'docket-added.js', 'docket-class.js', 'docket-module.js',
'docket-param.js', 'docket-returns.js', 'docket-signature.js', 'docket-status.js',
'docket-throws.js', 'docket-updated.js', 'parser.js'];
docket.title('Docket v0.X.X Documentation');
docket.linkClass('text-success');
docket.parseFiles(fileList);
docket.generateDocs('docs');
The documentation for Docket can be found in the /docs
folder, though these docs are in HTML and once
Markdown support is added, the docs will be displayed in this README.
This package comes with a tool called helper.js
that can be used to quickly generate getters and setters
complete with Docket style documentation using a small, customized object structure representing the class
properties. The output is written to helper-out.js
and can be copied into the body of any class. Customize
it however you'd like.
MIT Licensed
FAQs
Docket JavaScript Documentation Generator
The npm package docket-parser receives a total of 9 weekly downloads. As such, docket-parser popularity was classified as not popular.
We found that docket-parser demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.