{"versions":{"1.0.9":{"name":"golden-fleece","description":"Parse and manipulate JSON5 strings","version":"1.0.9","main":"golden-fleece.umd.js","module":"golden-fleece.es.js","types":"types/index.d.ts","files":["golden-fleece.es.js","golden-fleece.umd.js","src","types"],"devDependencies":{"@types/glob":"^5.0.33","@types/mocha":"^2.2.42","@types/node":"^8.0.26","benchmark":"^2.1.4","chalk":"^2.3.0","degit":"^2.0.1","glob":"^7.1.2","json5":"^0.5.1","locate-character":"^2.0.3","mocha":"^3.5.0","right-pad":"^1.0.1","rollup":"^0.49.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-typescript":"^0.8.1","rollup-plugin-virtual":"^1.0.1","sander":"^0.6.0","ts-node":"^3.3.0","typescript":"^2.5.2"},"scripts":{"build-declarations":"tsc -d && node scripts/move-declaration-files.js","build":"npm run build-declarations && rollup -c","fetch_tests":"degit json5/json5-tests test/json5-tests","test":"mocha --opts mocha.opts","prepublishOnly":"npm test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/Rich-Harris/golden-fleece.git"},"gitHead":"f2446f331640f325e13609ed99b74b6a45e755c2","bugs":{"url":"https://github.com/Rich-Harris/golden-fleece/issues"},"homepage":"https://github.com/Rich-Harris/golden-fleece#readme","_id":"golden-fleece@1.0.9","_npmVersion":"5.6.0","_nodeVersion":"9.11.1","_npmUser":{"name":"anonymous","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"0c4cbba8b493c8ab4cd4023404317a97785306f3","size":12600,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/golden-fleece/-/golden-fleece-1.0.9.tgz","integrity":"sha512-YSwLaGMOgSBx9roJlNLL12c+FRiw7VECphinc6mGucphc/ZxTHgdEz6gmJqH6NOzYEd/yr64hwjom5pZ+tJVpg=="},"maintainers":[{"name":"anonymous","email":"richard.a.harris@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/golden-fleece_1.0.9_1528213477517_0.40656594865355977"},"_hasShrinkwrap":false,"publish_time":1528213477567,"_cnpm_publish_time":1528213477567,"_cnpmcore_publish_time":"2021-12-14T02:36:45.018Z","contributors":[]},"1.0.8":{"name":"golden-fleece","description":"Parse and manipulate JSON5 strings","version":"1.0.8","main":"golden-fleece.umd.js","module":"golden-fleece.es.js","types":"types/index.d.ts","files":["golden-fleece.es.js","golden-fleece.umd.js","src","types"],"devDependencies":{"@types/glob":"^5.0.33","@types/mocha":"^2.2.42","@types/node":"^8.0.26","benchmark":"^2.1.4","chalk":"^2.3.0","degit":"^2.0.1","glob":"^7.1.2","json5":"^0.5.1","locate-character":"^2.0.3","mocha":"^3.5.0","right-pad":"^1.0.1","rollup":"^0.49.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-typescript":"^0.8.1","rollup-plugin-virtual":"^1.0.1","sander":"^0.6.0","ts-node":"^3.3.0","typescript":"^2.5.2"},"scripts":{"build-declarations":"tsc -d && node scripts/move-declaration-files.js","build":"npm run build-declarations && rollup -c","fetch_tests":"degit json5/json5-tests test/json5-tests","test":"mocha --opts mocha.opts","prepublishOnly":"npm test && npm run build"},"gitHead":"ac757fd5126567b672c018ab6fb3906145928ca8","_id":"golden-fleece@1.0.8","_npmVersion":"5.6.0","_nodeVersion":"9.8.0","_npmUser":{"name":"anonymous","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"9c3cb646128fc39039a5bfe0a9e5a89b33085105","size":12439,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/golden-fleece/-/golden-fleece-1.0.8.tgz","integrity":"sha512-tl9egrXWUKJgjgH2mcQHtWlR0WO+CH5T0fJ+ogRE3oWi+0ecrZkfif67GDnBbycsKWIdK+Bq8W3kt0skXXuWaA=="},"maintainers":[{"name":"anonymous","email":"richard.a.harris@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/golden-fleece_1.0.8_1522718450998_0.7549950935605938"},"_hasShrinkwrap":false,"publish_time":1522718451105,"_cnpm_publish_time":1522718451105,"_cnpmcore_publish_time":"2021-12-14T02:36:45.297Z","contributors":[]},"1.0.7":{"name":"golden-fleece","description":"Parse and manipulate JSON5 strings","version":"1.0.7","main":"golden-fleece.umd.js","module":"golden-fleece.es.js","types":"types/index.d.ts","files":["golden-fleece.es.js","golden-fleece.umd.js","src","types"],"devDependencies":{"@types/glob":"^5.0.33","@types/mocha":"^2.2.42","@types/node":"^8.0.26","benchmark":"^2.1.4","chalk":"^2.3.0","degit":"^2.0.1","glob":"^7.1.2","json5":"^0.5.1","locate-character":"^2.0.3","mocha":"^3.5.0","right-pad":"^1.0.1","rollup":"^0.49.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-typescript":"^0.8.1","rollup-plugin-virtual":"^1.0.1","sander":"^0.6.0","ts-node":"^3.3.0","typescript":"^2.5.2"},"scripts":{"build-declarations":"tsc -d && node scripts/move-declaration-files.js","build":"npm run build-declarations && rollup -c","fetch_tests":"degit json5/json5-tests test/json5-tests","test":"mocha --opts mocha.opts","prepublishOnly":"npm test && npm run build"},"gitHead":"8b92cd7a696b0b89b3ba75de73723aab7d6f7115","_id":"golden-fleece@1.0.7","_npmVersion":"5.6.0","_nodeVersion":"9.8.0","_npmUser":{"name":"anonymous","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"cae728802c11dde1bb809982915de2b542101523","size":12265,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/golden-fleece/-/golden-fleece-1.0.7.tgz","integrity":"sha512-bZzJRvQsIgIkM5g5a6kB7a+OywuSJiMLRSRBvJEFLKEZpEEgLsv6vunE1lL9122oIF9i6drp7O2eVDPvK9QCEw=="},"maintainers":[{"name":"anonymous","email":"richard.a.harris@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/golden-fleece_1.0.7_1522718347256_0.8745793391128909"},"_hasShrinkwrap":false,"publish_time":1522718347423,"_cnpm_publish_time":1522718347423,"_cnpmcore_publish_time":"2021-12-14T02:36:45.531Z","contributors":[]},"1.0.6":{"name":"golden-fleece","description":"Parse and manipulate JSON5 strings","version":"1.0.6","main":"golden-fleece.umd.js","module":"golden-fleece.es.js","types":"types/index.d.ts","files":["golden-fleece.es.js","golden-fleece.umd.js","src","types"],"devDependencies":{"@types/glob":"^5.0.33","@types/mocha":"^2.2.42","@types/node":"^8.0.26","benchmark":"^2.1.4","chalk":"^2.3.0","degit":"^2.0.1","glob":"^7.1.2","json5":"^0.5.1","locate-character":"^2.0.3","mocha":"^3.5.0","right-pad":"^1.0.1","rollup":"^0.49.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-typescript":"^0.8.1","rollup-plugin-virtual":"^1.0.1","sander":"^0.6.0","ts-node":"^3.3.0","typescript":"^2.5.2"},"scripts":{"build-declarations":"tsc -d && node scripts/move-declaration-files.js","build":"npm run build-declarations && rollup -c","fetch_tests":"degit json5/json5-tests test/json5-tests","test":"mocha --opts mocha.opts","prepublishOnly":"npm test && npm run build"},"gitHead":"95e4adcb8e8dcc22c1ea2b777ea068961ed0911a","_id":"golden-fleece@1.0.6","_npmVersion":"5.6.0","_nodeVersion":"9.8.0","_npmUser":{"name":"anonymous","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"0789d3d446bf2f9a1bb2197477253edbecf3f2e4","size":11982,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/golden-fleece/-/golden-fleece-1.0.6.tgz","integrity":"sha512-MYY7iEUXfXXmcdYRtD5GGYEkA719VFdUWKtfAIBqMQ9+6m5wkWYwUCPfMsQhWaj/6kKL6/y1UA1hbWGbLsi+kw=="},"maintainers":[{"name":"anonymous","email":"richard.a.harris@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/golden-fleece_1.0.6_1522689003465_0.9421639504020163"},"_hasShrinkwrap":false,"publish_time":1522689003577,"_cnpm_publish_time":1522689003577,"_cnpmcore_publish_time":"2021-12-14T02:36:45.744Z","contributors":[]},"1.0.5":{"name":"golden-fleece","description":"Parse and manipulate JSON5 strings","version":"1.0.5","main":"golden-fleece.umd.js","module":"golden-fleece.es.js","types":"types/index.d.ts","files":["golden-fleece.es.js","golden-fleece.umd.js","src","types"],"devDependencies":{"@types/glob":"^5.0.33","@types/mocha":"^2.2.42","@types/node":"^8.0.26","benchmark":"^2.1.4","chalk":"^2.3.0","degit":"^2.0.1","glob":"^7.1.2","json5":"^0.5.1","mocha":"^3.5.0","right-pad":"^1.0.1","rollup":"^0.49.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-typescript":"^0.8.1","rollup-plugin-virtual":"^1.0.1","sander":"^0.6.0","ts-node":"^3.3.0","typescript":"^2.5.2"},"scripts":{"build-declarations":"tsc -d && node scripts/move-declaration-files.js","build":"npm run build-declarations && rollup -c","fetch_tests":"degit json5/json5-tests test/json5-tests","test":"mocha --opts mocha.opts","prepublishOnly":"npm test && npm run build"},"dependencies":{"locate-character":"^2.0.3"},"gitHead":"d967cbcfad7afa8f05221a4c7f0bad1c3e3e0dc6","_id":"golden-fleece@1.0.5","_npmVersion":"5.6.0","_nodeVersion":"9.8.0","_npmUser":{"name":"anonymous","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"3b1c809fef0610e5d4a95d649b86a975b8491e57","size":11668,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/golden-fleece/-/golden-fleece-1.0.5.tgz","integrity":"sha512-1Ny+hNT4/FrMWI9Gcwa9i2SJVCD9PBIPT2NluN2LlMDECCvO5iJvkqdbwJKeIdrzsrH449jnxNwxQz9CsCvcNg=="},"maintainers":[{"name":"anonymous","email":"richard.a.harris@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/golden-fleece_1.0.5_1522676029934_0.550936229290832"},"_hasShrinkwrap":false,"publish_time":1522676030054,"_cnpm_publish_time":1522676030054,"_cnpmcore_publish_time":"2021-12-14T02:36:46.040Z","contributors":[]},"1.0.4":{"name":"golden-fleece","description":"Parse and manipulate JSON5 strings","version":"1.0.4","main":"golden-fleece.umd.js","module":"golden-fleece.es.js","types":"types/index.d.ts","files":["golden-fleece.es.js","golden-fleece.umd.js","src","types"],"devDependencies":{"@types/glob":"^5.0.33","@types/mocha":"^2.2.42","@types/node":"^8.0.26","benchmark":"^2.1.4","chalk":"^2.3.0","degit":"^2.0.1","glob":"^7.1.2","json5":"^0.5.1","mocha":"^3.5.0","right-pad":"^1.0.1","rollup":"^0.49.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-typescript":"^0.8.1","rollup-plugin-virtual":"^1.0.1","sander":"^0.6.0","ts-node":"^3.3.0","typescript":"^2.5.2"},"scripts":{"build-declarations":"tsc -d && node scripts/move-declaration-files.js","build":"npm run build-declarations && rollup -c","fetch_tests":"degit json5/json5-tests test/json5-tests","test":"mocha --opts mocha.opts","pretest":"npm run build"},"dependencies":{"locate-character":"^2.0.3"},"gitHead":"2c5ef5a5fc52b098a49e29ba07ffcae4c9b77425","_id":"golden-fleece@1.0.4","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"anonymous","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"21417811d2506868b4deee812c00d8408597e333","size":11480,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/golden-fleece/-/golden-fleece-1.0.4.tgz","integrity":"sha512-89NqJuBKohrJ7UKh5t5/C2RZWXKK/3hGD9wGc0kD/F2XiSCuNyxAGoAuGkdLqjN1wzpJqmn5Bd1kXD3G8MOPyQ=="},"maintainers":[{"name":"anonymous","email":"richard.a.harris@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/golden-fleece_1.0.4_1518728659388_0.5913847866704021"},"_hasShrinkwrap":false,"publish_time":1518728659445,"_cnpm_publish_time":1518728659445,"_cnpmcore_publish_time":"2021-12-14T02:36:46.281Z","contributors":[]},"1.0.3":{"name":"golden-fleece","description":"Parse and manipulate JSON5 strings","version":"1.0.3","main":"golden-fleece.umd.js","module":"golden-fleece.es.js","types":"types/index.d.ts","files":["golden-fleece.es.js","golden-fleece.umd.js","src","types"],"devDependencies":{"@types/glob":"^5.0.33","@types/mocha":"^2.2.42","@types/node":"^8.0.26","benchmark":"^2.1.4","chalk":"^2.3.0","degit":"^2.0.1","glob":"^7.1.2","json5":"^0.5.1","mocha":"^3.5.0","right-pad":"^1.0.1","rollup":"^0.49.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-typescript":"^0.8.1","rollup-plugin-virtual":"^1.0.1","sander":"^0.6.0","ts-node":"^3.3.0","typescript":"^2.5.2"},"scripts":{"build-declarations":"tsc -d && node scripts/move-declaration-files.js","build":"npm run build-declarations && rollup -c","fetch_tests":"degit json5/json5-tests test/json5-tests","test":"mocha --opts mocha.opts","pretest":"npm run build"},"dependencies":{"locate-character":"^2.0.3"},"gitHead":"9754ac7860395f838a75b5355337c06cd0df26e2","_id":"golden-fleece@1.0.3","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"anonymous","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"4e479b1e8e59a7e51f50e015c915056ed0a292f0","size":11309,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/golden-fleece/-/golden-fleece-1.0.3.tgz","integrity":"sha512-oDQoAqSFyncHafMK9USN9vommD92O7bC4a5vw7FMFFfYiAz3Ui80wDAY4uvAtzn+sPAsKJZniF6UA7lTxINDjQ=="},"maintainers":[{"name":"anonymous","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/golden-fleece-1.0.3.tgz_1512246400153_0.17944104480557144"},"directories":{},"publish_time":1512246401089,"_hasShrinkwrap":false,"_cnpm_publish_time":1512246401089,"_cnpmcore_publish_time":"2021-12-14T02:36:46.498Z","contributors":[]},"1.0.2":{"name":"golden-fleece","description":"Parse and manipulate JSON5 strings","version":"1.0.2","main":"golden-fleece.umd.js","module":"golden-fleece.es.js","types":"types/index.d.ts","files":["golden-fleece.es.js","golden-fleece.umd.js","src","types"],"devDependencies":{"@types/glob":"^5.0.33","@types/mocha":"^2.2.42","@types/node":"^8.0.26","benchmark":"^2.1.4","chalk":"^2.3.0","degit":"^2.0.1","glob":"^7.1.2","json5":"^0.5.1","mocha":"^3.5.0","right-pad":"^1.0.1","rollup":"^0.49.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-typescript":"^0.8.1","rollup-plugin-virtual":"^1.0.1","sander":"^0.6.0","ts-node":"^3.3.0","typescript":"^2.5.2"},"scripts":{"build-declarations":"tsc -d && node scripts/move-declaration-files.js","build":"npm run build-declarations && rollup -c","fetch_tests":"degit json5/json5-tests test/json5-tests","test":"mocha --opts mocha.opts","pretest":"npm run build"},"dependencies":{"locate-character":"^2.0.3"},"gitHead":"e35257d8763dd1f27e6a835ef82d2e23ef77db9c","_id":"golden-fleece@1.0.2","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"anonymous","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"3d4b1336fcc4a2cb255788907969f0ce092c03aa","size":11302,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/golden-fleece/-/golden-fleece-1.0.2.tgz","integrity":"sha512-nckQkr6BOh1DkEj7fAZnl/yHSNdrvLQusdcRnJxkrYtVCe6yebhI/SxpsdW344lqw5BTWpUbwyl+w5oyrxZjTQ=="},"maintainers":[{"name":"anonymous","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/golden-fleece-1.0.2.tgz_1511813802744_0.0877882270142436"},"directories":{},"publish_time":1511813803743,"_hasShrinkwrap":false,"_cnpm_publish_time":1511813803743,"_cnpmcore_publish_time":"2021-12-14T02:36:46.706Z","contributors":[]},"1.0.1":{"name":"golden-fleece","description":"Parse and manipulate JSON5 strings","version":"1.0.1","main":"golden-fleece.umd.js","module":"golden-fleece.es.js","types":"types/index.d.ts","files":["golden-fleece.es.js","golden-fleece.umd.js","src","types"],"devDependencies":{"@types/mocha":"^2.2.42","@types/node":"^8.0.26","glob":"^7.1.2","mocha":"^3.5.0","rollup":"^0.49.2","rollup-plugin-typescript":"^0.8.1","rollup-plugin-virtual":"^1.0.1","sander":"^0.6.0","ts-node":"^3.3.0","typescript":"^2.5.2"},"scripts":{"build-declarations":"tsc -d && node scripts/move-declaration-files.js","build":"npm run build-declarations && rollup -c","test":"mocha --opts mocha.opts","pretest":"npm run build"},"gitHead":"e9ea0a4249da88df684e26b0e5a33401aad8980c","_id":"golden-fleece@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"anonymous","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"b266579080fb2f519b8d44ba26655ce7c7fc48ea","size":10294,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/golden-fleece/-/golden-fleece-1.0.1.tgz","integrity":"sha512-Al0KgiG9NiJgOJdn4HVWHahDPezyHhnVr5NI0iZ6FB3L2yyzUQAi4RFuV3TjjBuAfogqDgm+v8Dn/pRV7sCXZw=="},"maintainers":[{"name":"anonymous","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/golden-fleece-1.0.1.tgz_1511738660746_0.9429940525442362"},"directories":{},"publish_time":1511738661700,"_hasShrinkwrap":false,"_cnpm_publish_time":1511738661700,"_cnpmcore_publish_time":"2021-12-14T02:36:46.908Z","contributors":[]},"1.0.0":{"name":"golden-fleece","description":"Parse and manipulate JSON5 strings","version":"1.0.0","main":"golden-fleece.umd.js","module":"golden-fleece.es.js","types":"types/index.d.ts","files":["golden-fleece.es.js","golden-fleece.umd.js","src","types"],"devDependencies":{"@types/mocha":"^2.2.42","@types/node":"^8.0.26","glob":"^7.1.2","mocha":"^3.5.0","rollup":"^0.49.2","rollup-plugin-typescript":"^0.8.1","rollup-plugin-virtual":"^1.0.1","sander":"^0.6.0","ts-node":"^3.3.0","typescript":"^2.5.2"},"scripts":{"build-declarations":"tsc -d && node scripts/move-declaration-files.js","build":"npm run build-declarations && rollup -c","test":"mocha --opts mocha.opts","pretest":"npm run build"},"gitHead":"197078f66245a2b956dd2258460b0d28f119199c","_id":"golden-fleece@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"anonymous","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"c09fe66fe12e03e0f782c0b8a932d341b6e2796c","size":9748,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/golden-fleece/-/golden-fleece-1.0.0.tgz","integrity":"sha512-rxvCft9DME+zg4Ec31K5LewI7fN+4Qf4jP1MKdyc1iXOrDFsBEyXaGDGLTIMErI0OeelEQAVy+OENDPnDOocNw=="},"maintainers":[{"name":"anonymous","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/golden-fleece-1.0.0.tgz_1511724592678_0.7404039993416518"},"directories":{},"publish_time":1511724593225,"_hasShrinkwrap":false,"_cnpm_publish_time":1511724593225,"_cnpmcore_publish_time":"2021-12-14T02:36:47.106Z","contributors":[]}},"dist-tags":{"latest":"1.0.9"},"name":"golden-fleece","time":{"created":"2022-01-26T23:37:01.215Z","modified":"2022-01-26T23:37:01.215Z","1.0.9":"2018-06-05T15:44:37.567Z","1.0.8":"2018-04-03T01:20:51.105Z","1.0.7":"2018-04-03T01:19:07.423Z","1.0.6":"2018-04-02T17:10:03.577Z","1.0.5":"2018-04-02T13:33:50.054Z","1.0.4":"2018-02-15T21:04:19.445Z","1.0.3":"2017-12-02T20:26:41.089Z","1.0.2":"2017-11-27T20:16:43.743Z","1.0.1":"2017-11-26T23:24:21.700Z","1.0.0":"2017-11-26T19:29:53.225Z"},"readme":"# golden-fleece\n\nParse a [JSON5](http://json5.org/) string (like JSON, but less strict).\n\n## Why?\n\nFor the [Svelte REPL](https://svelte.technology/repl), where we want to allow arbitrary data in the bottom right-hand panel, but we also want to update the object without reformatting it as JSON.\n\n\n## Usage\n\nInstall it with `npm install golden-fleece` and import it into your app:\n\n```js\nimport * as fleece from 'golden-fleece';\n```\n\n### fleece.parse(str, [options])\n\n```js\nconst ast = fleece.parse(`true`);\n// { start: 0, end: 4, type: 'Literal', raw: 'true', value: true }\n```\n\nThe returned AST is [ESTree](https://github.com/estree/estree) compliant.\n\nYou can optionally pass callbacks that are fired whenever a value or comment is encountered:\n\n```js\nconst ast = fleece.parse(str, {\n\tonComment: comment => {\n\t\tconsole.log('got a comment', comment);\n\t},\n\tonValue: value => {\n\t\tconsole.log('got a value', value);\n\t}\n});\n```\n\n\n### fleece.evaluate(str)\n\n```js\nconst { answer } = fleece.evaluate(`{ answer: 42 }`);\nanswer === 42; // true\n```\n\n\n### fleece.patch(str, value)\n\nThis is where it gets fun:\n\n```js\nconst str = `\n\tnumber: 1,\n\tstring: 'yes',\n\tobject: { nested: true },\n\tarray: ['this', 'that', 'the other']\n`;\n\nconst object = fleece.evaluate(str);\nobject.number = 42;\nobject.array[2] = 'EVERYTHING';\n\nfleece.patch(str, object) === `{\n\tnumber: 42,\n\tstring: 'yes',\n\tobject: { nested: true },\n\tarray: ['this', 'that', 'EVERYTHING']\n}`; // true\n```\n\nNotice that the formatting has been preserved.\n\n\n### fleece.stringify(value, [options])\n\n\n```js\nconst object = {\n\tstring: 'hello',\n\t'quoted-property': 2,\n\tarray: [3, 4]\n};\n\nfleece.stringify(object) === `{\n\tstring: \"hello\",\n\t\"quoted-property\": 2,\n\tarray: [\n\t\t3,\n\t\t4\n\t]\n}`; // true\n```\n\nTo indent with spaces instead of tabs, pass `spaces: n`, where `n` is the number of spaces at each level of indentation.\n\n```js\nfleece.stringify(object, {\n\tspaces: 2\n}) === `{\n  string: \"hello\",\n  \"quoted-property\": 2,\n  array: [\n    3,\n    4\n  ]\n}`; // true\n```\n\nTo prefer single-quotes to double-quotes, pass `singleQuotes: true`:\n\n```js\nfleece.stringify(object, {\n\tsingleQuotes: true\n}) === `{\n\tstring: 'hello',\n\t'quoted-property': 2,\n\tarray: [\n\t\t3,\n\t\t4\n\t]\n}`; // true\n```\n\n\n## License\n\n[LIL](LICENSE)","users":{}}