https://github.com/tachibana-shin/arraybuffer-isbinary
Detects if a file is binary in all platform. Similar to Perl's -B
https://github.com/tachibana-shin/arraybuffer-isbinary
arraybuffer arraybuffer-isbinary isbinary npm
Last synced: 10 months ago
JSON representation
Detects if a file is binary in all platform. Similar to Perl's -B
- Host: GitHub
- URL: https://github.com/tachibana-shin/arraybuffer-isbinary
- Owner: tachibana-shin
- License: mit
- Created: 2023-04-27T07:42:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-20T18:23:48.000Z (over 2 years ago)
- Last Synced: 2025-03-12T17:11:20.272Z (10 months ago)
- Topics: arraybuffer, arraybuffer-isbinary, isbinary, npm
- Language: TypeScript
- Homepage:
- Size: 153 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# arraybuffer-isbinary
Detects if a file is binary in all platform. Similar to Perl's -B
### Install
```bash
pnpm add arraybuffer-isbinary
```
### Usage
```ts
import { isBinaryFile } from "arraybuffer-isbinary"
console.log(isBinaryFile(buffer))
```