htc b500366a42 首次提交 | 3 bulan lalu | |
---|---|---|
.. | ||
index.d.ts | 3 bulan lalu | |
index.js | 3 bulan lalu | |
license | 3 bulan lalu | |
package.json | 3 bulan lalu | |
readme.md | 3 bulan lalu |
Check if a file path is a binary file
$ npm install is-binary-path
const isBinaryPath = require('is-binary-path');
isBinaryPath('source/unicorn.png');
//=> true
isBinaryPath('source/unicorn.txt');
//=> false
MIT © Sindre Sorhus, Paul Miller