Skip to content

GyverLibs/bson.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bson.js

Распаковщик бинарного JSON для библиотеки BSON.

npm i @alexgyver/bson

const codes = [
    'some',
    'string',
    'constants',
];

let json;
const res = await fetch(...);

try {
    json = decodeBson(new Uint8Array(await res.arrayBuffer()), codes);
} catch (e) { }

About

Decode BSON from GSON Arduino library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published