Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

docket-parser

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docket-parser

Docket JavaScript Documentation Generator

  • 0.7.7
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Docket JavaScript Documentation Generator v0.7.7

Installation

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.

Usage

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');

Outputs

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.

Helper

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.

Todo

  • Link all objects together, including links to other modules, and standard objects to Mozilla
  • Add option to output in Markdown format
  • Add support for documenting properties
  • Add scroll-spy capability from Bootstrap

License

MIT Licensed

Keywords

FAQs

Package last updated on 29 Feb 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc