time-to-botec/js/node_modules/@stdlib/buffer/reviver/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

33 lines
582 B
Plaintext

{{alias}}( key, value )
Revives a JSON-serialized Buffer.
The serialization format for a Buffer is an object having the following
fields:
- type: value type (Buffer)
- data: buffer data as an array of integers
Parameters
----------
key: string
Key.
value: any
Value.
Returns
-------
out: any
Value or Buffer.
Examples
--------
> var str = '{"type":"Buffer","data":[5,3]}';
> var buf = {{alias:@stdlib/utils/parse-json}}( str, {{alias}} )
<Buffer>[ 5, 3 ]
See Also
--------