世祺 0423d5801c Initial commit (by Create-Cloudflare CLI) | il y a 1 an | |
---|---|---|
.. | ||
index.d.ts | il y a 1 an | |
index.js | il y a 1 an | |
license | il y a 1 an | |
package.json | il y a 1 an | |
readme.md | il y a 1 an |
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