tahamajs's picture
download
raw
690 Bytes
/*! (c) Andrea Giammarchi - ISC */
import {deserialize} from './deserialize.js';
import {serialize} from './serialize.js';
const {parse: $parse, stringify: $stringify} = JSON;
const options = {json: true, lossy: true};
/**
* Revive a previously stringified structured clone.
* @param {string} str previously stringified data as string.
* @returns {any} whatever was previously stringified as clone.
*/
export const parse = str => deserialize($parse(str));
/**
* Represent a structured clone value as string.
* @param {any} any some clone-able value to stringify.
* @returns {string} the value stringified.
*/
export const stringify = any => $stringify(serialize(any, options));

Xet Storage Details

Size:
690 Bytes
·
Xet hash:
7f6e8e0bff93a83a00ff8da569490173f76ee2e5d4645c74360aef6d39d4c0af

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.