Skip to content
Check if a file path is a binary file
JavaScript TypeScript
Branch: master
Clone or download
Latest commit b2b65a6 May 31, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
.editorconfig Meta tweaks Mar 27, 2019
.gitattributes
.gitignore Meta tweaks Mar 27, 2019
.npmrc Meta tweaks Mar 27, 2019
.travis.yml Add Node.js 12 to testing (#5) Apr 27, 2019
index.d.ts
index.js Meta tweaks Apr 19, 2019
index.test-d.ts Meta tweaks Apr 19, 2019
license
package.json
readme.md Tidelift tasks May 31, 2019
test.js Meta tweaks Mar 27, 2019

readme.md

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


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
You can’t perform that action at this time.