An open API service indexing awesome lists of open source software.

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

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))
```