Split/combine a JSON meta data head with a string or buffer body.
import guillotine from 'json-guillotine-pmb';
[headers, body] = guillotine.chop(blob);
blob = guillotine.recombine(headers, body);
headers
: A jsonable POJObody
,blob
: String or Buffer, same type as the other.
see test/basics.js
- Needs more/better tests and docs.
ISC