Wondering what’s next for npm?Check out our public roadmap! »

    is-binary-path
    TypeScript icon, indicating that this package has built-in type declarations

    2.1.0 • Public • Published

    is-binary-path Build Status

    Check if a file path is a binary file

    Install

    $ npm install is-binary-path
    

    Usage

    const isBinaryPath = require('is-binary-path');
     
    isBinaryPath('source/unicorn.png');
    //=> true
     
    isBinaryPath('source/unicorn.txt');
    //=> false

    Related

    License

    MIT © Sindre Sorhus, Paul Miller

    Install

    npm i is-binary-path

    DownloadsWeekly Downloads

    28,809,252

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    3.08 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar