Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@zumerbox/doc-extractor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zumerbox/doc-extractor

A tool to extract comments from scss, css and js files and create markdown doc files

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@zumerbox/doc-extractor

DocExtractor is a Node.js script designed to extract comments from CSS, SCSS, and JavaScript files and generate Markdown documentation files. It provides a command-line interface (CLI) for easy usage.

Refer to the ZumerBox bundle for more information and tools.

Installation

npm install @zumerbox/doc-extractor --save-dev

Usage

To use DocExtractor, run it from the command line with the following syntax:

npx doc-extractor [entryPath] [options]

Options:

  • [entryPath]: Path to the entry file, multiple files, or a folder containing the files to extract comments from.

  • -folder [outputFolder]: Specify the output folder for the generated Markdown files. (Default: 'output')

  • -multiple: Generate one Markdown file per input file. By default, a consolidated Markdown file named 'docs.md' will be created.

  • -scss-imports: Include this flag to process SCSS files with @import statements. It will extract comments from imported files as well.

Example:

Extract comments from a single file:

npx doc-extractor index.js

Extract comments from multiple files:

npx doc-extractor src -multiple

Generate documentation for SCSS files with imports:

npx doc-extractor styles/main.scss -scss-imports

FAQs

Package last updated on 10 Apr 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