Socket
Book a DemoInstallSign in
Socket

breakdance-request

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

breakdance-request

Get a webpage from a URL and convert it to markdown.

beta
Source
npmnpm
Version
2.0.0-beta
Version published
Weekly downloads
14
-86%
Maintainers
1
Weekly downloads
 
Created
Source

breakdance-request NPM version NPM monthly downloads NPM total downloads

Get a webpage from a URL and convert it to markdown.

Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your :heart: and support.

Install

Install with npm:

$ npm install --save breakdance-request

Usage

Add breakdance-request to your node.js application with the following line of JavaScript:

var request = require('breakdance-request');

CLI

Installing the CLI

$ npm install  --global breakdance-request

This adds the bdr command to your system path, allowing you to run breakdance-request CLI from any directory:

$ bdr
# or use the "breakdance-request" alias in case of conflicts
$ breakdance-request

CLI examples

Get http://breakdance.io/plugins.html and convert it to markdown with breakdance, then write it to plugins.md.

$ bdr http://breakdance.io/plugins.html
# or using flags
$ bdr -s http://breakdance.io/plugins.html -d foo.md
# "pick" just the ".main-content" section from the page
$ bdr -s http://breakdance.io/plugins.html -d foo.md -p ".main-content"

CLI options

Usage: $ bdr [options] <src> <dest>

   src:  The URL of the source file to convert to markdown
  dest:  Name of the markdown destination file to create.
         By default the HTML filename is used with a .md
         extension.

Options:

  -h, --help     Show this help menu in the terminal
  -s, --src      Show this help menu in the terminal
  -c, --condense Collapse more than two newlines to only
                 two newlines. Enabled by default
  -d, --dest     The destination filepath to use.
  -o, --omit     One or more tags to omit entirely from
                 the HTML before converting to markdown.
  -p, --pick     One or more tags to pick entirely from the
                 HTML before converting to markdown.
  --comments     Include HTML code comments in the generated
                 markdown string. Disabled by default

About

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Please read the contributing guide for advice on opening issues, pull requests, and coding standards.

Running Tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test
Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

You might also be interested in these projects:

  • breakdance-cli: CLI for breakdance, the HTML to markdown converter for node.js. | homepage
  • breakdance-reflinks: Breakdance plugin that aggregates the urls from hrefs and src attributes at the bottom of… more | homepage
  • breakdance: Breakdance is a node.js library for converting HTML to markdown. Highly pluggable, flexible and easy… more | homepage

Author

Jon Schlinkert

License

Copyright © 2026, Jon Schlinkert. Released under the MIT License.

This file was generated by verb-generate-readme, v0.8.0, on January 05, 2026.

Keywords

breakdance

FAQs

Package last updated on 05 Jan 2026

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