Nuptial Predicament Mediation

    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

    0

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • tomekwi