{"_id":"parser-utils","_rev":"82734","name":"parser-utils","description":"Utilies for parser-cache and compatible parsers.","dist-tags":{"latest":"0.3.1"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:26:22.000Z","created":"2014-08-24T23:31:33.350Z","0.3.1":"2014-09-03T22:25:47.962Z","0.3.0":"2014-09-01T20:29:16.597Z","0.2.1":"2014-09-01T18:30:18.998Z","0.2.0":"2014-08-27T05:45:48.752Z","0.1.2":"2014-08-26T23:57:04.187Z","0.1.1":"2014-08-25T20:28:19.890Z","0.1.0":"2014-08-24T23:31:33.350Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/parser-utils.git"},"versions":{"0.3.1":{"name":"parser-utils","description":"Utilies for parser-cache and compatible parsers.","version":"0.3.1","homepage":"https://github.com/jonschlinkert/parser-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/parser-utils.git"},"bugs":{"url":"https://github.com/jonschlinkert/parser-utils/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/parser-utils/blob/master/LICENSE-MIT"}],"keywords":["assemble","cache","compile","consolidate","content","data","engine","express","front","gray-matter","matter","noop","parse","parser","parsers","pass-through","process","templates","yaml","util"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"gray-matter":"^0.5.0","mocha":"*","should":"^4.0.4","verb":">= 0.2.6","verb-tag-jscomments":"^0.2.2"},"dependencies":{"lodash":"^2.4.1"},"_id":"parser-utils@0.3.1","_shasum":"6d3d959b672a08f09ffc19ffca9de0cfa8fd0a36","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"6d3d959b672a08f09ffc19ffca9de0cfa8fd0a36","size":5291,"noattachment":false,"key":"/parser-utils/-/parser-utils-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parser-utils/download/parser-utils-0.3.1.tgz"},"directories":{},"publish_time":1409783147962,"_cnpm_publish_time":1409783147962,"_hasShrinkwrap":false},"0.3.0":{"name":"parser-utils","description":"Utilies for parser-cache and compatible parsers.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/parser-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/parser-utils.git"},"bugs":{"url":"https://github.com/jonschlinkert/parser-utils/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/parser-utils/blob/master/LICENSE-MIT"}],"keywords":["assemble","cache","compile","consolidate","content","data","engine","express","front","gray-matter","matter","noop","parse","parser","parsers","pass-through","process","templates","yaml","util"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"gray-matter":"^0.4.2","mocha":"*","should":"^4.0.4","verb":">= 0.2.6","verb-tag-jscomments":"^0.2.2"},"dependencies":{"lodash":"^2.4.1"},"_id":"parser-utils@0.3.0","_shasum":"fe288682d4c5d030254f8e1a67d4071e7687e4d7","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"fe288682d4c5d030254f8e1a67d4071e7687e4d7","size":5309,"noattachment":false,"key":"/parser-utils/-/parser-utils-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parser-utils/download/parser-utils-0.3.0.tgz"},"directories":{},"publish_time":1409603356597,"_cnpm_publish_time":1409603356597,"_hasShrinkwrap":false},"0.2.1":{"name":"parser-utils","description":"Utilies for parser-cache and compatible parsers.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/parser-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/parser-utils.git"},"bugs":{"url":"https://github.com/jonschlinkert/parser-utils/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/parser-utils/blob/master/LICENSE-MIT"}],"keywords":["assemble","cache","compile","consolidate","content","data","engine","express","front","gray-matter","matter","noop","parse","parser","parsers","pass-through","process","templates","yaml","util"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"gray-matter":"^0.4.2","mocha":"*","should":"^4.0.4","verb":">= 0.2.6","verb-tag-jscomments":">= 0.2.0"},"dependencies":{"lodash":"^2.4.1"},"_id":"parser-utils@0.2.1","_shasum":"aa84fbf6d92295f4d6e40ca9fe767bd30e1003eb","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"aa84fbf6d92295f4d6e40ca9fe767bd30e1003eb","size":5397,"noattachment":false,"key":"/parser-utils/-/parser-utils-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parser-utils/download/parser-utils-0.2.1.tgz"},"directories":{},"publish_time":1409596218998,"_cnpm_publish_time":1409596218998,"_hasShrinkwrap":false},"0.2.0":{"name":"parser-utils","description":"Utilies for parser-cache and compatible parsers.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/parser-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/parser-utils.git"},"bugs":{"url":"https://github.com/jonschlinkert/parser-utils/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/parser-utils/blob/master/LICENSE-MIT"}],"keywords":["assemble","cache","compile","consolidate","content","data","engine","express","front","gray-matter","matter","noop","parse","parser","parsers","pass-through","process","templates","yaml","util"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"gray-matter":"^0.4.2","mocha":"*","should":"^4.0.4","verb":">= 0.2.6","verb-tag-jscomments":">= 0.2.0"},"dependencies":{"lodash":"^2.4.1"},"_id":"parser-utils@0.2.0","_shasum":"458c494238a6c6856a082965b1b292892b083847","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"458c494238a6c6856a082965b1b292892b083847","size":5426,"noattachment":false,"key":"/parser-utils/-/parser-utils-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parser-utils/download/parser-utils-0.2.0.tgz"},"directories":{},"publish_time":1409118348752,"_cnpm_publish_time":1409118348752,"_hasShrinkwrap":false},"0.1.2":{"name":"parser-utils","description":"Utilies for parser-cache and compatible parsers.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/parser-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/parser-utils.git"},"bugs":{"url":"https://github.com/jonschlinkert/parser-utils/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/parser-utils/blob/master/LICENSE-MIT"}],"keywords":["assemble","cache","compile","consolidate","content","data","engine","express","front","gray-matter","matter","noop","parse","parser","parsers","pass-through","process","templates","yaml","util"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"gray-matter":"^0.4.2","mocha":"*","should":"^4.0.4","verb":">= 0.2.6","verb-tag-jscomments":">= 0.2.0"},"dependencies":{"lodash":"^2.4.1"},"_id":"parser-utils@0.1.2","_shasum":"45c5f6eec944fc421fe4b94c2f6a43291792efd1","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"45c5f6eec944fc421fe4b94c2f6a43291792efd1","size":4575,"noattachment":false,"key":"/parser-utils/-/parser-utils-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/parser-utils/download/parser-utils-0.1.2.tgz"},"directories":{},"publish_time":1409097424187,"_cnpm_publish_time":1409097424187,"_hasShrinkwrap":false},"0.1.1":{"name":"parser-utils","description":"Utilies for parser-cache and compatible parsers.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/parser-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/parser-utils.git"},"bugs":{"url":"https://github.com/jonschlinkert/parser-utils/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/parser-utils/blob/master/LICENSE-MIT"}],"keywords":["docs","documentation","generate","generator","markdown","templates","verb"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"gray-matter":"^0.4.2","mocha":"*","should":"^4.0.4","verb":">= 0.2.6","verb-tag-jscomments":">= 0.2.0"},"dependencies":{"lodash":"^2.4.1"},"_id":"parser-utils@0.1.1","_shasum":"d65a2fea29020cda3815337de9baabe8ace78413","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"d65a2fea29020cda3815337de9baabe8ace78413","size":4019,"noattachment":false,"key":"/parser-utils/-/parser-utils-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parser-utils/download/parser-utils-0.1.1.tgz"},"directories":{},"publish_time":1408998499890,"_cnpm_publish_time":1408998499890,"_hasShrinkwrap":false},"0.1.0":{"name":"parser-utils","description":"Utilies for parser-cache and compatible parsers.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/parser-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/parser-utils.git"},"bugs":{"url":"https://github.com/jonschlinkert/parser-utils/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/parser-utils/blob/master/LICENSE-MIT"}],"keywords":["docs","documentation","generate","generator","markdown","templates","verb"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"verb-tag-jscomments":">= 0.1.4","verb":">= 0.2.6","mocha":"*"},"dependencies":{"lodash":"^2.4.1"},"_id":"parser-utils@0.1.0","_shasum":"8df64c11f98757bfe8346ac276bc4030b46f1222","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"8df64c11f98757bfe8346ac276bc4030b46f1222","size":3039,"noattachment":false,"key":"/parser-utils/-/parser-utils-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parser-utils/download/parser-utils-0.1.0.tgz"},"directories":{},"publish_time":1408923093350,"_cnpm_publish_time":1408923093350,"_hasShrinkwrap":false}},"readme":"# parser-utils [![NPM version](https://badge.fury.io/js/parser-utils.svg)](http://badge.fury.io/js/parser-utils)\n\n\n> Utilies for parser-cache and compatible parsers.\n\n## Install\n#### Install with [npm](npmjs.org):\n\n```bash\nnpm i parser-utils --save-dev\n```\n\n## Usage\n\n```js\nvar utils = require('parser-utils');\n```\n\n## API\n### [.fileKeys](index.js#L83)\n\n* `returns` **{Array}**: Array of keys.  \n\nGet the array of keys expected on normalized `file` objects.\n\n### [.diffKeys](index.js#L105)\n\nGet an array of keys that should not be on the root of a normalized `file` object.\n\n* `obj` **{Object}**: The object to inspect.    \n* `props` **{Array}**: Array of properties to concat to the output.    \n* `returns` **{Array}**: Array of keys  \n\n**Example:**\n\n```js\nvar utils = require('parser-utils');\nvar file = {a: 'a', b: 'b', path: 'a/b/c.md'};\nconsole.log(utils.diffKeys(file));\n//=> ['a', 'b']\n```\n\n### [.siftKeys](index.js#L126)\n\n* `obj` **{Object}**: The object to normalize.    \n* `props` **{Array}**: Any additional properties to include.    \n* `returns` **{Object}**: Normalized object.  \n\nNormalize the properties on the given `obj`.\n\n### [.mergeData](index.js#L155)\n\n* `obj` **{Object}**: Object with data objects to merge.    \n* `locals` **{Object}**: Optional object of data that should \"win\" over other data.    \n* `merge` **{Function}**: Function to use for merging data.    \n* `returns` **{Object}**: Object with a single `data` property.  \n\nReturn an object composed only of `data` properties. If a `locals` object\nis supplied, properties in that object will override any properties on the\n`data` object. If a `locals` object is defined, and/or if the `locals` object\nhas a nested `locals` property, both will be merged with the `data` property\non the returned object.\n\n### [.flattenObject](index.js#L178)\n\nMerge nested properties into the root of the given object. Nested properties occur when, for instance, and options object - intended as `locals`, is also passed with an actual `locals` property.\n\n* `obj` **{Object}**: The object to flatten.    \n* `key` **{String}**: The property to merge onto the root of the object.    \n* `merge` **{Function}**: Function to use for merging data.    \n* `returns` **{Object}**: Object with `locals` merged into the root.  \n\n**Note** that this will only merge properties one level deep.\n\n## Author\n\n**Jon Schlinkert**\n \n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) \n\n## License\nCopyright (c) 2014 Jon Schlinkert, contributors.  \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 01, 2014._","_attachments":{},"homepage":"https://github.com/jonschlinkert/parser-utils","bugs":{"url":"https://github.com/jonschlinkert/parser-utils/issues"}}