New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

turndown-cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turndown-cli

A command-line-interface tool for turndown library.

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

turndown-cli

A command-line-interface tool for turndown module.

It converts the .html file into .md file. So basically, it is a CLI based HTML to Markdown converter tool.

Install

You can install it via npm, but make sure your system have node.js installed prior to that.

% npm install turndown-cli

Usages

The help option shows all the relevant information regarding the usages of the app.

% turndown-cli -h

Usages:
  turndown-cli (-h|-v)
  turndown-cli <source> (<target>)
  turndown-cli (<option>=<choice>) <source> (<target>)

Parameters:
  source    HTML source filepath
  target    Markdown target filepath
  option    Any option from provided options
  choice    Any choice out of provided choices

Options:
  -t --head       Heading style
                  1) setext    2) atx
  -r --hr         Horizontal rule
                  1) *    2) -    3) _
  -b --bullet     Bullet list marker
                  1) *    2) -    3) +
  -c --code       Code block style
                  1) indented    2) fenced
  -f --fence      Fence style
                  1) `    2) ~
  -e --em         Em delimiter
                  1) _    2) *
  -s --strong     Strong delimiter
                  1) **    2) __
  -l --link       Link style
                  1) inlined    2) referenced
  -u --linkref    Link reference style
                  1) full    2) collapsed    3) shortcut
  -p --pre        Preformatted code
                  1) false    2) true

Note that the first choice is default for each options.

Examples:
  turndown-cli -h
  turndown-cli sample.html
  turndown-cli sample.html sample.md
  turndown-cli -t=2 -r=3 -c=2 -f=1 -s=2 sample.html


FAQs

Package last updated on 28 Jun 2021

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