Skip to content

Split/combine a JSON meta data head with a string or buffer body.

Notifications You must be signed in to change notification settings

mk-pmb/json-guillotine-pmb-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-guillotine-pmb

Split/combine a JSON meta data head with a string or buffer body.

API

import guillotine from 'json-guillotine-pmb';
[headers, body] = guillotine.chop(blob);
blob = guillotine.recombine(headers, body);
  • headers: A jsonable POJO
  • body, blob: String or Buffer, same type as the other.

Usage

see test/basics.js

Known issues

  • Needs more/better tests and docs.

 

License

ISC

About

Split/combine a JSON meta data head with a string or buffer body.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published