json-to-buffer
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

json-to-buffer

json-to-buffer travers JSON object and using Buffer.from(JSON.stringify(chunk)) converts object to Buffer - could be handy for converting large JSON objects to Buffer.

Usage

import jsonToBuffer from 'json-to-buffer'
// import { jsonToBuffer } from 'json-to-buffer'

jsonToBuffer({data: [{to: "convert"}]});

Readme

Keywords

Package Sidebar

Install

npm i json-to-buffer

Weekly Downloads

323

Version

1.0.4

License

ISC

Unpacked Size

4.51 kB

Total Files

6

Last publish

Collaborators

  • ondrej-111