Needless Patchouli Manufacture
    Have ideas to improve npm?Join in the discussion! »

    string-remove

    1.0.3 • Public • Published

    string-remove Build Status

    Remove unwanted things in your string

    Install

    $ npm install --save string-remove
    

    Usage

     
    const stringRemove = require('string-remove');
     
    const yourString1 = 'examle???string.@@!!';
     
    const result = stringRemove(yourString1, ['?','@','.','!']);
     
    console.log(result);
    //=> 'examlestring'
     
    const yourString2 = '% % %t e s t$ $ $ ';
     
    const result = stringRemove(yourString2, ['%t',' ', '%', '$', 't']);
     
    console.log(result);
    //=> 'es'
     

    API

    stringRemove(str, [options])

    str

    Type: string

    String which need to be processed.

    options

    Type: array

    Elements need to be removed.

    License

    MIT © haotian Chang

    Install

    npm i string-remove

    DownloadsWeekly Downloads

    4

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • avatar