Nominating Presidential Muppets

npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

erase

1.0.2 • Public • Published

Coveralls – test coverage Travis – build status David – status of dependencies Stability: stable Code style: airbnb

 

erase

Remove part of a markdown/HTML document.





 

Installation

$ npm install erase
 

Usage

const erase = require('erase');
 
const readme =
`# Got a readme here
 
<!-- @erase start -->I’ve got some irrelevant stuff there, but I hope that
<!-- @erase end -->most of it is quite important.
`;
 
erase(readme);
//» # Got a readme here
//
//  most of it is quite important.

Anything between the markers <!-- @erase start --> and <!-- @erase end --> will be removed from your string. You can have as much whitespace within your marker as you want. Both the start marker and the end marker are optional, but we need at least one of them to erase anything from your input.

 

See also

 

License

MIT © Studio B12 GmbH

install

npm i erase

Downloadsweekly downloads

7

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability