Git Product home page Git Product logo

js-doc-md's Introduction

js-doc-md

npm version Known Vulnerabilities

Generate readme.md files for Javascript using jsdoc-to-markdown.

Installation

npm i -g @rianbotha/js-doc-md

Usage

Run the following command in the terminal to replace or create a readme.md in the same directory.

js-doc-md path/to/index.js path

The first argument is the path to the file containing your Javascript or a glob. It can be a comma separated list.

Note: Globs needs to be wrapped in quotes.

The second argument is the base path from which the import path will be calculated.

If the file is named index.js the readme.md will be name readme.md. Otherwise the readme will be name filename.md to match your file.

Existing documentation needs to be wrapped between <!-- js-doc-md-start --> and <!-- js-doc-md-end --> for the replacement to work. Only content between these comments will be replaced. This allows you to manually extend readmes without worrying about it being overwritten in future.

Options

  • --ignore A filename or glob to exclude. You can comma separate a list. Make sure to wrap globs in quotes.
  • --to-console will write the props table to the terminal instead of the file.
  • --force Overwrite the current readme if it exists and start and end comments are missing.
  • --help or -h display usage options
  • --version or -v display version information

js-doc-md's People

Contributors

rianbotha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.