Narnia's Psychedelic Mushrooms
    Have ideas to improve npm?Join in the discussion! »

    strip-bom
    TypeScript icon, indicating that this package has built-in type declarations

    5.0.0 • Public • Published

    strip-bom

    Strip UTF-8 byte order mark (BOM) from a string

    From Wikipedia:

    The Unicode Standard permits the BOM in UTF-8, but does not require nor recommend its use. Byte order has no meaning in UTF-8.

    Install

    $ npm install strip-bom
    

    Usage

    import stripBom from 'strip-bom';
    
    stripBom('\uFEFFunicorn');
    //=> 'unicorn'

    Related


    Get professional support for 'strip-bom' with a Tidelift subscription
    Tidelift helps make open source sustainable for maintainers while giving companies
    assurances about security, maintenance, and licensing for their dependencies.

    Install

    npm i strip-bom

    DownloadsWeekly Downloads

    33,685,753

    Version

    5.0.0

    License

    MIT

    Unpacked Size

    3.63 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar