Skip to content

joshLong145/json-buffer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-buffer

JSON functions that can convert buffers!

JSON mangles buffers by converting to an array... which isn't helpful. json-buffers converts to base64 instead, and deconverts base64 to a buffer.

import * as JSONB  from './mod.ts';
import { Buffer } from "https://deno.land/[email protected]/node/buffer.ts";


var str = JSONB.stringify(Buffer.from("hello there!"));

console.log(JSONB.parse(str)); //GET a BUFFER back

License

MIT

About

Deno compatible JSON buffer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%