0.0.2 • Published 1 year ago

ai-buffer-detect v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Machine Learning Buffer-Detect

A machine learning for buffer file encoding detect

npm i ai-buffer-detect
const { detect, ENCODING } = require('ai-buffer-detect')
const fs = require('fs')
const path = require('path')

void async function () {
    let res = await detect(fs.readFileSync(path.resolve(__dirname, 'file')))
    console.log(ENCODING.UTF8)
}()

TODO

Article