{"_id":"json-content-demux","_rev":"1762727","name":"json-content-demux","description":"Break up JSON from content in a JSON-first file","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"time":{"modified":"2026-11-27T16:09:45.000Z","created":"2012-11-17T23:17:47.822Z","0.2.0":"2020-06-30T08:45:32.222Z","0.1.4":"2020-06-30T08:29:10.918Z","0.1.3":"2013-06-19T05:31:42.295Z","0.1.2":"2012-11-18T00:19:54.126Z","0.1.1":"2012-11-17T23:59:39.462Z","0.1.0":"2012-11-17T23:51:08.872Z","0.0.0":"2012-11-17T23:17:47.822Z"},"users":{},"author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/json-content-demux.git"},"versions":{"0.2.0":{"name":"json-content-demux","description":"Break up JSON from content in a JSON-first file","version":"0.2.0","homepage":"https://github.com/twolfson/json-content-demux","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/json-content-demux.git"},"bugs":{"url":"https://github.com/twolfson/json-content-demux/issues"},"license":"MIT","main":"lib/json-content-demux","engines":{"node":">= 10.0.0"},"scripts":{"lint":"jshint lib/ test/","test":"npm run lint && nodeunit test"},"devDependencies":{"foundry":"~4.4.2","foundry-release-git":"~2.0.3","foundry-release-npm":"~2.0.2","jshint":"~2.11.1","nodeunit":"~0.11.3"},"keywords":["json","content","demux","combined","splitter","breaker","break up"],"foundry":{"releaseCommands":["foundry-release-git","foundry-release-npm"]},"gitHead":"fff77f05416198d2083cfee14155e96c2d56ff9b","_id":"json-content-demux@0.2.0","_npmVersion":"6.4.1","_nodeVersion":"8.16.2","_npmUser":{"name":"twolfson","email":"todd@twolfson.com"},"dist":{"integrity":"sha512-q5PvRam9io/3+lcYi43L3hcAR1tX4z5mxK6Ue1LBQVYAjjMf7ugPe62uthoVwy93vHmbTUKjl1NctrRPPK5TeQ==","shasum":"e533a7aa6ac72fbf0b5855186561c601e8ad1a6b","tarball":"http://registry-npm.ywwl.com/json-content-demux/download/json-content-demux-0.2.0.tgz","fileCount":14,"unpackedSize":8616,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+vusCRA9TVsSAnZWagAAGGcP/35/0jg9PZodeb0qdI1I\ntrIRvg68YxVFW1W+5FKYC3n3p4Vf61jhpQqoqUT7cLS4UNAYmN12poq1T847\n6gvZ9OziQlCQiUdNgjBXmNKbG3FS+97Xv95R9xOvh9PmxKlO3IQMmZsXRU9o\n663Y7bw7g0lIQafcKYpZZ89r2BG97NQda13OyutjlAnxImLM7VWxi6d/iyXK\nPsh72fzCnK2y39sOjonPe210GIRNQhRTmiavRXPgkYgAPkElA1kml8gH3FRl\nmOd0OMSIMjN8uX814GLUTDl9mZ+j2oVEcojVd7fFJalBI7tB4K+ADNQZJMbM\nkJR5lUPzIWT+8yoZEl4IN++36/ZD/i2rbw+q0RbGqGjp5VdHsAhsn49tCvvd\ndNzGJENJ/DRISMxUZ7p5DCY/9Ncad71O8w8qzMdz7XETCkLMQtLJkn1O6rbL\nWh5tcwCSIARk6rVw9FEG+XieUA1MIJqVWQTAsXw7mYGoHR2HOhzM7dbzCu+1\nkPPjUAt+l9MPWvMpDgXXUy87etBwtbCErLKn35FBbHX4AVlBwXS/uOL7O4IK\nLeZjZbi6fUN9uojJ35WErXCSgxoWV46e2lOc3HmtEqjC6tB8ur6QK9N3WLIc\n74JsPShbvLit7LismXXCsb3rNxZhj4gXPP5BW05y/RW45hfTZiWwAvhsPzC8\n7fmJ\r\n=J9ZI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0Ny1UhCnu0gOIwv7pfElFGxsTo/W34CBeBw2NNOIXlwIhAJ0Y1EwTz1I4vfBMgBFClY7SZjpDlc2lCA75cSwAlBtu"}],"size":3481,"noattachment":false,"key":"/json-content-demux/-/json-content-demux-0.2.0.tgz"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-content-demux_0.2.0_1593506732098_0.5117490002760106"},"_hasShrinkwrap":false,"publish_time":1593506732222,"_cnpm_publish_time":1593506732222},"0.1.4":{"name":"json-content-demux","description":"Break up JSON from content in a JSON-first file","version":"0.1.4","homepage":"https://github.com/twolfson/json-content-demux","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/json-content-demux.git"},"bugs":{"url":"https://github.com/twolfson/json-content-demux/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/json-content-demux/blob/master/LICENSE-MIT"}],"main":"lib/json-content-demux","engines":{"node":">= 0.6.0"},"scripts":{"test":"nodeunit test"},"devDependencies":{"grunt":"~0.3.12","nodeunit":"~0.11.3"},"keywords":["json","content","demux","combined","splitter","breaker","break up"],"gitHead":"6710af8164e346ac3804edcb76387d31cc6307cc","_id":"json-content-demux@0.1.4","_npmVersion":"6.4.1","_nodeVersion":"8.16.2","_npmUser":{"name":"twolfson","email":"todd@twolfson.com"},"dist":{"integrity":"sha512-3GqPH2O0+8qBMTa1YTuL+7L24YJYNDjdXfa798y9S6GetScZAY2iAOGCdFkEPZJZdafPKv8ZUnp18VCCPTs0Nw==","shasum":"6d573fbb5a2b224ae225736e287f32ea91a4273d","tarball":"http://registry-npm.ywwl.com/json-content-demux/download/json-content-demux-0.1.4.tgz","fileCount":13,"unpackedSize":8787,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+vfXCRA9TVsSAnZWagAAcpcP/izF2ugj9Ty+zDxQoiCd\n6qZDfoLvaNs5Yy9uiKPUAdWw1Yr/KyKG+bO8APBItkFthAt4zkMMqFGhglIr\nrJcROD/N5xpxr6X3q37DVW5sVFOeJWBed6J4r+Wq1qP1e59rs/Nh+aw3BZeu\na+19OBM5eos31SPwgkOz7BwPXxN2KnYP2leZlw+Q6iJHCn10ZTBVaMezi4Wg\nrsvQNG1qkXoeCIBRuPCAfr/WbBBdqnhzkXtMzFgpgI/UOZRb1BJeUeMT44fq\nLOKJ2PK5m6L3IIYqupLiW99N9nXml2X6l1s2huUpdrRlGs1V6/NQl5d/M6CW\njqgsk3hxSJ8m20Kh+5Mv230iINcg60649+GZyBfGjpKNfhZw3B6umIpsY2ct\nmRqkfTcf75x2SrGHEK/k+G2yt/ZwCkUufVaQlFSppefRAozDhzGHI6rU3QTE\n2DbZbqRvF2cF7h+W+l6mFM5N2m2X9LZli803mVzLzdWCgsfkdrQPP5qBfGAG\nJeBVVR1gkAE6ShdsiQiKKpvcNWBX0NyzMQv8v+Rdrdf1fTDoqjOAUPg82kV6\n1CDd4dS86GnT7FqTOkB+Vs6twInWhnfSL+6t4pHkkrpaMNUgz/sJ5rzxmTiG\nZux3ufRTCQyHO0LXcN71rvvF59dEuy257N/QGpVtbIDpvlMLFqdjiR/czuUQ\nE1Hi\r\n=GbBg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmPN7lSE/o75F2jJMHfeLsiPFHC1yyyi8Iudlq3d6yRgIgaysEVjmHKnzoH+hZ0XDdsMl+8/a0KPUEeJow6nTjwr8="}],"size":3421,"noattachment":false,"key":"/json-content-demux/-/json-content-demux-0.1.4.tgz"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-content-demux_0.1.4_1593505750800_0.5395880425870856"},"_hasShrinkwrap":false,"publish_time":1593505750918,"_cnpm_publish_time":1593505750918},"0.1.3":{"name":"json-content-demux","description":"Break up JSON from content in a JSON-first file","version":"0.1.3","homepage":"https://github.com/twolfson/json-content-demux","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/json-content-demux.git"},"bugs":{"url":"https://github.com/twolfson/json-content-demux/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/json-content-demux/blob/master/LICENSE-MIT"}],"main":"lib/json-content-demux","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.12"},"keywords":["json","content","demux","combined","splitter","breaker","break up"],"readmeFilename":"README.md","_id":"json-content-demux@0.1.3","dist":{"shasum":"5c1277bf7f3b7512a86b732ddd41b32d4dfcb1cc","tarball":"http://registry-npm.ywwl.com/json-content-demux/download/json-content-demux-0.1.3.tgz","integrity":"sha512-RqIm5ECS+BRjOrzapbOVKmQCRZqhv4AD2pav388Zv5umqdbv1qaMmu8yFImHnWRxzzTJnX8i3TsWfqRiT1qRUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDNWzMzoYBOysT558FLGuwxkBvmj6o3YXLIaE60nYmkRAiEAnu+MPEtvtLcskZNMtfdxGUkXc14qt6z6m9kg87iwOdI="}],"size":3460,"noattachment":false,"key":"/json-content-demux/-/json-content-demux-0.1.3.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"twolfson","email":"todd@twolfson.com"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"directories":{},"publish_time":1371619902295,"_cnpm_publish_time":1371619902295},"0.1.2":{"name":"json-content-demux","description":"Break up JSON from content in a JSON-first file","version":"0.1.2","homepage":"https://github.com/twolfson/json-content-demux","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/json-content-demux.git"},"bugs":{"url":"https://github.com/twolfson/json-content-demux/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/json-content-demux/blob/master/LICENSE-MIT"}],"main":"lib/json-content-demux","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.12"},"keywords":["json","content","demux","combined","splitter","breaker","break up"],"_id":"json-content-demux@0.1.2","dist":{"shasum":"d9a4f26c69fd0dd82c039d2380cddfb829f89d0f","tarball":"http://registry-npm.ywwl.com/json-content-demux/download/json-content-demux-0.1.2.tgz","integrity":"sha512-IeU1oPtIoqDOt1JCVFjeHDuqiwYKZnW5USnQLZGdGQaHnjk5hBn06VmPkXpAmoxAtVo4wwT3PV0/HbpNJ2Qt7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQDmbiIbW2/pH3X4NWNawD2HHZC9wrVy3Rb1evdQewOAiARjv0lZTEjV0AMyI9DD3TC4nxzoTjl9goNBIK1DgBJ5Q=="}],"size":3438,"noattachment":false,"key":"/json-content-demux/-/json-content-demux-0.1.2.tgz"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"directories":{},"publish_time":1353197994126,"_cnpm_publish_time":1353197994126},"0.1.1":{"name":"json-content-demux","description":"Break up JSON from content in a JSON-first file","version":"0.1.1","homepage":"https://github.com/twolfson/json-content-demux","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/json-content-demux.git"},"bugs":{"url":"https://github.com/twolfson/json-content-demux/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/json-content-demux/blob/master/LICENSE-MIT"}],"main":"lib/json-content-demux","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.12"},"keywords":["json","content","demux","combined","splitter","breaker","break up"],"_id":"json-content-demux@0.1.1","dist":{"shasum":"dab987dfc16e079bae5beaf7ecbc0217556be1fc","tarball":"http://registry-npm.ywwl.com/json-content-demux/download/json-content-demux-0.1.1.tgz","integrity":"sha512-zzK8jgQ1bmugVk4/I6eRbNDCzjSMYr20YRRRiCqTTksxg6jlEZoZECa9tPT0PJKHvMxo6M65JDfpV/buBD9iKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0Ci7C3LbxCh+4rusWboHhRhlYMvX/yIsG664NtnG5lgIgEsFzoGyUWRjRm/K4UBWId+iGeGqhG4Y4KzBKVgEXw/M="}],"size":3268,"noattachment":false,"key":"/json-content-demux/-/json-content-demux-0.1.1.tgz"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"directories":{},"publish_time":1353196779462,"_cnpm_publish_time":1353196779462},"0.1.0":{"name":"json-content-demux","description":"Break up JSON from content in a JSON-first file","version":"0.1.0","homepage":"https://github.com/twolfson/json-content-demux","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/json-content-demux.git"},"bugs":{"url":"https://github.com/twolfson/json-content-demux/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/json-content-demux/blob/master/LICENSE-MIT"}],"main":"lib/json-content-demux","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.12"},"keywords":["json","content","demux","combined","splitter","breaker","break up"],"_id":"json-content-demux@0.1.0","dist":{"shasum":"c8a8e74c4815c2d912eaf4697e59f6b67a27e873","tarball":"http://registry-npm.ywwl.com/json-content-demux/download/json-content-demux-0.1.0.tgz","integrity":"sha512-xowvt0WNLK5jjp1JUAX/ynFPqilMGF/WWXnjkHJJiVoavPitkPR12noT4665PgRXg01TxdXZ1Dh3gAQHv9zOwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDpC9jYiJVdmtqyJARlWBm1yFWqfylALwXFt6Tv54fVSAiBQA/HkKrSD6ILZNb2nJ5dvIF5f3gsfR8kCJ3eXZb4aIw=="}],"size":3148,"noattachment":false,"key":"/json-content-demux/-/json-content-demux-0.1.0.tgz"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"directories":{},"publish_time":1353196268872,"_cnpm_publish_time":1353196268872},"0.0.0":{"name":"json-content-demux","description":"Break up JSON from content in a JSON-first file","version":"0.0.0","homepage":"https://github.com/twolfson/json-content-demux","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/json-content-demux.git"},"bugs":{"url":"https://github.com/twolfson/json-content-demux/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/json-content-demux/blob/master/LICENSE-MIT"}],"main":"lib/json-content-demux","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.12"},"keywords":["json","content","demux","combined","splitter","breaker","break up"],"_id":"json-content-demux@0.0.0","dist":{"shasum":"7981b52a829c93f757ef516348c33313f6a155fa","tarball":"http://registry-npm.ywwl.com/json-content-demux/download/json-content-demux-0.0.0.tgz","integrity":"sha512-DJtBbS2qW+dX9MwaBqmRA9eWDrZOau9eWmfeu8YsXqoMNQr8FE42xvEg+ejo6yT/X8usAi7pixexpxCxRtyNCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAgIbCReZVmWW85dOSUOtAY9h+Nk2IF7+sqhMAiqXccxAiEApKwO6Ih/7eZoZYAzANOCyKJq/wwr1r3LPqMQHGtr6Q8="}],"size":2218,"noattachment":false,"key":"/json-content-demux/-/json-content-demux-0.0.0.tgz"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"directories":{},"publish_time":1353194267822,"_cnpm_publish_time":1353194267822}},"readme":"# json-content-demux\n\nBreak up JSON from content in a JSON-first file\n\n## Getting Started\nInstall the module with: `npm install json-content-demux`\n\n```javascript\n// muxed.md\n{\n  \"title\": \"This is some muxed JSON and content\",\n  \"options\": {\n    \"Hello\": \"World!\"\n  }\n}\n\nHere is some content\nOm nom nom\n\n\n// app.js\nvar jsonContentDemux = require('json-content-demux'),\n    muxedContent = fs.readFileSync('muxed.md', 'utf8'),\n    demuxedObj = jsonContentDemux(muxedStr);\ndemuxedObj.json; // {\"title\":\"This is some muxed...\",\"options\"}\ndemuxedObj.content; // \"Here is some content\\nOm nom nom\"\n```\n\n## Documentation\njsonContentDemux is currently a single function module with a single purpose.\n```js\n/**\n * @param {String} muxStr Muxed content to break up\n * @returns {Object} retObj\n * @returns {Object} retObj.json JSON found at the head of the content\n * @returns {String} retObj.content Content found in the body\n */\n```\n\nAt some point, the scope may increasee to encapsulate any markup language as well as multiple sets of delimited items.\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint via `npm run lint` and test via `npm test`.\n\n## Donating\nSupport this project and [others by twolfson][twolfson-projects] via [donations][twolfson-support-me].\n\n<http://twolfson.com/support-me>\n\n[twolfson-projects]: http://twolfson.com/projects\n[twolfson-support-me]: http://twolfson.com/support-me\n\n## License\nCopyright (c) 2012 Todd Wolfson\nLicensed under the MIT license.\n","_attachments":{},"homepage":"https://github.com/twolfson/json-content-demux","bugs":{"url":"https://github.com/twolfson/json-content-demux/issues"},"license":"MIT"}