{"_id":"apiary-blueprint-parser","_rev":"52-d46345158dfecf1dc4d8b86617513658","name":"apiary-blueprint-parser","description":"Apiary blueprint parser","dist-tags":{"latest":"0.5.3"},"versions":{"0.1.0":{"name":"apiary-blueprint-parser","version":"0.1.0","description":"Apiary blueprint parser","homepage":"http://apiary.io/","author":{"name":"Apiary Ltd.","email":"team@apiary.io","url":"http://apiary.io/"},"files":["LICENSE","README.md","VERSION","examples/example.apib","lib/apiary-blueprint-parser.js","lib/ast.js"],"main":"lib/apiary-blueprint-parser","devDependencies":{"coffee-script":"*","pegjs":"= 0.7.0","mocha":"*","chai":"*"},"engines":{"node":">= 0.6.18"},"_npmUser":{"name":"apiary","email":"lukas+npm@apiary.io"},"_id":"apiary-blueprint-parser@0.1.0","dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"472040ff85430759c4512da69da347eaaf09b836","tarball":"https://registry.npmjs.org/apiary-blueprint-parser/-/apiary-blueprint-parser-0.1.0.tgz","integrity":"sha512-5fF8yYya2OZUxj1gxCpBQ7My/+0gQU+IXcm3kA/7gXSEgR+cJGLCTA1vbjvJTBp2GgSirgQPX4/kZ+xBco2/qA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAhU6BMte9I+j/KyH1YGuVzWJw3yLhAoUlIuTTa8qu9lAiEA4tZhassuQWSU1c0nmtpyUODa1fk0AsayiWcS+6apHXM="}]},"maintainers":[{"name":"apiary","email":"lukas+npm@apiary.io"}],"directories":{}},"0.1.1":{"name":"apiary-blueprint-parser","version":"0.1.1","description":"Apiary blueprint parser","homepage":"http://apiary.io/","author":{"name":"Apiary Ltd.","email":"team@apiary.io","url":"http://apiary.io/"},"files":["LICENSE","README.md","VERSION","examples/example.apib","lib/apiary-blueprint-parser.js","lib/ast.js"],"main":"lib/apiary-blueprint-parser","devDependencies":{"coffee-script":"*","pegjs":"= 0.7.0","mocha":"*","chai":"*"},"engines":{"node":">= 0.6.18"},"_npmUser":{"name":"apiary","email":"lukas+npm@apiary.io"},"_id":"apiary-blueprint-parser@0.1.1","dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"3257f8c9cd5be9b97f4e12a5d7bd3abf9c8d88a4","tarball":"https://registry.npmjs.org/apiary-blueprint-parser/-/apiary-blueprint-parser-0.1.1.tgz","integrity":"sha512-TlF4QuxqLcLyxOLZSeSDVYGqKrY99kTAoofNtrRFBfJDuofR9pdkPZ3zoRyZDsObRg+xePepxhHRhyeE9VCfsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHx8p3UIkDxydvGZYzp4zlXGBwG3HPVRmkgaqzpdfiZQIhAIbz+YvbNmYgk2SsLyRqDQjmgvSbmzCpr5UmoUKZPtI2"}]},"maintainers":[{"name":"apiary","email":"lukas+npm@apiary.io"}],"directories":{}},"0.2.0":{"name":"apiary-blueprint-parser","version":"0.2.0","description":"Apiary blueprint parser","homepage":"https://github.com/apiaryio/blueprint-parser","author":{"name":"Apiary Ltd.","email":"team@apiary.io","url":"http://apiary.io/"},"files":["CHANGELOG","LICENSE","README.md","VERSION","examples/example.apib","lib/apiary-blueprint-parser.js","lib/ast.js"],"main":"lib/apiary-blueprint-parser","devDependencies":{"coffee-script":"= 1.4.0","pegjs":"= 0.7.0","mocha":"= 1.7.1","chai":"= 1.3.0"},"engines":{"node":">= 0.6.18"},"_npmUser":{"name":"apiary","email":"lukas+npm@apiary.io"},"_id":"apiary-blueprint-parser@0.2.0","dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"7252c3b42695ede15f0ec3ab7991fdd0c39c1d81","tarball":"https://registry.npmjs.org/apiary-blueprint-parser/-/apiary-blueprint-parser-0.2.0.tgz","integrity":"sha512-mo7Ogz4s0IwxRrF1aIg8dDEQ4JQIE/HwXhrZnULYhyrrOUFpjgXAzGZ/ul/crVs1uzsJ0XhPXsogLWJEeREfhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEf+Lr26V/HWcYKfiQ6mIaI6c8s0wi35KvPF1zAj3Fb5AiEA67Mi4Co07oeH1qgcUOkRiF5p2o3VuYaVa2I5SG+xw2M="}]},"maintainers":[{"name":"apiary","email":"lukas+npm@apiary.io"},{"name":"dmajda","email":"david@majda.cz"}],"directories":{}},"0.3.0":{"name":"apiary-blueprint-parser","version":"0.3.0","description":"Apiary blueprint parser","homepage":"https://github.com/apiaryio/blueprint-parser","author":{"name":"Apiary Ltd.","email":"team@apiary.io","url":"http://apiary.io/"},"files":["CHANGELOG","LICENSE","README.md","VERSION","examples/example.apib","lib/apiary-blueprint-parser.js","lib/ast.js"],"main":"lib/apiary-blueprint-parser","devDependencies":{"coffee-script":"= 1.4.0","pegjs":"= 0.7.0","mocha":"= 1.7.1","chai":"= 1.3.0"},"engines":{"node":">= 0.6.18"},"_npmUser":{"name":"dmajda","email":"david@majda.cz"},"_id":"apiary-blueprint-parser@0.3.0","dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"a0cff86b4283902652f0225ecf5fd033d1ec5636","tarball":"https://registry.npmjs.org/apiary-blueprint-parser/-/apiary-blueprint-parser-0.3.0.tgz","integrity":"sha512-EMZ04fG8cOCyORp647JPbUHey6u5f+BGgYkDqBnRWv2+NILuVyv3orohx40yV2uKTjgri4XsLOL2i12VGaH2MA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDToHvlfGiqZ6SYGBKzPKc0SNGxyzTldl2q1yUKE3fhBwIgaca+lBt4+ifN+GykoEy59hfV9GuCS/FP5apWxkkqs4E="}]},"maintainers":[{"name":"apiary","email":"lukas+npm@apiary.io"},{"name":"dmajda","email":"david@majda.cz"}],"directories":{}},"0.4.0":{"name":"apiary-blueprint-parser","version":"0.4.0","description":"Apiary blueprint parser","homepage":"https://github.com/apiaryio/blueprint-parser","author":{"name":"Apiary Ltd.","email":"team@apiary.io","url":"http://apiary.io/"},"files":["CHANGELOG","LICENSE","README.md","VERSION","examples/example.apib","lib/apiary-blueprint-parser.js","lib/ast.js"],"main":"lib/apiary-blueprint-parser","devDependencies":{"coffee-script":"= 1.4.0","pegjs":"git://github.com/dmajda/pegjs.git#02af83f9b416778878e52e2cbbc22d96e312164e","mocha":"= 1.7.1","chai":"= 1.3.0"},"engines":{"node":">= 0.6.18"},"_npmUser":{"name":"dmajda","email":"david@majda.cz"},"_id":"apiary-blueprint-parser@0.4.0","dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"b2ab726a6896a04dd1f544d842d5b7bf4f310290","tarball":"https://registry.npmjs.org/apiary-blueprint-parser/-/apiary-blueprint-parser-0.4.0.tgz","integrity":"sha512-S8OuRbvc580c0dmIwDsxrhL0FtnzWYHAP5xUfuSem9zVUuBEvErJX0wua3/qvvM6OE6QuZIy7yTvmN0OdnfC+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF0/2EEQmtM0XmZdk4tW012geBCa200dmGuZOxuYaWeQAiABFxwG4UHQPOT01rRyhQsvU+kz1EUpLHiDZrAvUaK4Kg=="}]},"maintainers":[{"name":"apiary","email":"lukas+npm@apiary.io"},{"name":"dmajda","email":"david@majda.cz"}],"directories":{}},"0.4.1":{"name":"apiary-blueprint-parser","version":"0.4.1","description":"Apiary blueprint parser","homepage":"https://github.com/apiaryio/blueprint-parser","author":{"name":"Apiary Ltd.","email":"team@apiary.io","url":"http://apiary.io/"},"files":["CHANGELOG","LICENSE","README.md","VERSION","examples/example.apib","lib/apiary-blueprint-parser.js","lib/ast.js"],"main":"lib/apiary-blueprint-parser","devDependencies":{"coffee-script":"= 1.4.0","pegjs":"git://github.com/dmajda/pegjs.git#02af83f9b416778878e52e2cbbc22d96e312164e","mocha":"= 1.7.1","chai":"= 1.3.0"},"engines":{"node":">= 0.6.18"},"_npmUser":{"name":"dmajda","email":"david@majda.cz"},"_id":"apiary-blueprint-parser@0.4.1","dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"b99f27dbfd4e9d7fd1cb8616e998cf558ccd9d88","tarball":"https://registry.npmjs.org/apiary-blueprint-parser/-/apiary-blueprint-parser-0.4.1.tgz","integrity":"sha512-uxGGZQ4zHUy6U7QEtRg85K3WglOvp47Eivf3HEDbJhvsoRgBekWCcWoZjgMykQFHqWV9CsLUmjxLGbdBpgyx2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNVqQLrv/ehTzqCrYADSSbrnh4o5t91jBvqL+SZdkTIgIgWInE9ncZ2ZXhSUl46JNMJFLYpO/9eFPtjUtNgo93KL4="}]},"maintainers":[{"name":"apiary","email":"lukas+npm@apiary.io"},{"name":"dmajda","email":"david@majda.cz"}],"directories":{}},"0.4.2":{"name":"apiary-blueprint-parser","version":"0.4.2","description":"Apiary blueprint parser","homepage":"https://github.com/apiaryio/blueprint-parser","author":{"name":"Apiary Ltd.","email":"team@apiary.io","url":"http://apiary.io/"},"files":["CHANGELOG","LICENSE","README.md","VERSION","examples/example.apib","lib/apiary-blueprint-parser.js","lib/ast.js"],"main":"lib/apiary-blueprint-parser","devDependencies":{"coffee-script":"= 1.4.0","pegjs":"git://github.com/dmajda/pegjs.git#02af83f9b416778878e52e2cbbc22d96e312164e","mocha":"= 1.7.1","chai":"= 1.3.0"},"engines":{"node":">= 0.6.18"},"_id":"apiary-blueprint-parser@0.4.2","dist":{"shasum":"1bf9123d75d297313d73ef86238c14b845dd102b","tarball":"https://registry.npmjs.org/apiary-blueprint-parser/-/apiary-blueprint-parser-0.4.2.tgz","integrity":"sha512-0UuBYayBRt0U1CMKimaB0bF3T5fYZHJeDhXASyGSQKB7wQDgFug6LN779nFJW5zAvD5xap1RRzvwp8Zk992qnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBHnViKegWLY7vwVGSSGVo8SU9bXdqqS/Ol3TGguA2UgIhANRwpgqqiU/6qMFmCbMdna3wLvzktNoLyNikMx4PnP/b"}]},"_npmVersion":"1.1.66","_npmUser":{"name":"zdne","email":"z@apiary.io"},"maintainers":[{"name":"apiary","email":"lukas+npm@apiary.io"},{"name":"dmajda","email":"david@majda.cz"},{"name":"zdne","email":"z@apiary.io"}],"directories":{}},"0.4.3":{"name":"apiary-blueprint-parser","version":"0.4.3","description":"Apiary blueprint parser","homepage":"https://github.com/apiaryio/blueprint-parser","author":{"name":"Apiary Ltd.","email":"team@apiary.io","url":"http://apiary.io/"},"files":["CHANGELOG","LICENSE","README.md","VERSION","examples/example.apib","lib/apiary-blueprint-parser.js","lib/ast.js"],"main":"lib/apiary-blueprint-parser","scripts":{"pretest":"make","test":"make test"},"devDependencies":{"coffee-script":"= 1.4.0","pegjs":"git://github.com/dmajda/pegjs.git#02af83f9b416778878e52e2cbbc22d96e312164e","mocha":"= 1.7.1","chai":"= 1.3.0"},"engines":{"node":">= 0.6.18"},"_id":"apiary-blueprint-parser@0.4.3","dist":{"shasum":"04c1e230c78d0b601ea90169fac36024ce038f98","tarball":"https://registry.npmjs.org/apiary-blueprint-parser/-/apiary-blueprint-parser-0.4.3.tgz","integrity":"sha512-Lw+KPq7kR9o7JpOK8/IOiK1zXy1tLgjj7SXRMPkdi/SpmF0t6VDKTbTKDpXtoHP/lRttAZ+oBizlLVydtCNDhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHwgZeSManXwsk23aEmfBTLu2hgIJxt7QIWnhlQujclBAiBqZ7DI8ywjPi8V4HxZvUIvFmv0OS11GucU34yJS+jo5w=="}]},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"zdne","email":"z@apiary.io"},"maintainers":[{"name":"apiary","email":"lukas+npm@apiary.io"},{"name":"dmajda","email":"david@majda.cz"},{"name":"zdne","email":"z@apiary.io"}],"directories":{}},"0.4.4":{"name":"apiary-blueprint-parser","version":"0.4.4","description":"Apiary blueprint parser","homepage":"https://github.com/apiaryio/blueprint-parser","author":{"name":"Apiary Ltd.","email":"team@apiary.io","url":"http://apiary.io/"},"files":["CHANGELOG","LICENSE","README.md","VERSION","examples/example.apib","lib/apiary-blueprint-parser.js","lib/ast.js"],"main":"lib/apiary-blueprint-parser","scripts":{"pretest":"make","test":"make test"},"devDependencies":{"coffee-script":"= 1.4.0","pegjs":"git://github.com/dmajda/pegjs.git#02af83f9b416778878e52e2cbbc22d96e312164e","mocha":"= 1.7.1","chai":"= 1.3.0"},"engines":{"node":">= 0.6.18"},"_id":"apiary-blueprint-parser@0.4.4","dist":{"shasum":"e3378c7efe242207164c3ddb7dd44722c851c96d","tarball":"https://registry.npmjs.org/apiary-blueprint-parser/-/apiary-blueprint-parser-0.4.4.tgz","integrity":"sha512-Hw4/5DQv6b3Z2F5ZQUPnsVNsHAbg7i6oJFlafMHyeO/I4G0gTbTlLGLRGA9xPGchezSpQDZsB831w6mfxWvKdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWyYAgYTi9cfsaFuKRDBq2LJjeSn46K393/Mq/4qkllwIhAMNqM3ft3aGhF3WDdTfFthJyw5El2DIwkye4kFcLApuU"}]},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"zdne","email":"z@apiary.io"},"maintainers":[{"name":"apiary","email":"lukas+npm@apiary.io"},{"name":"dmajda","email":"david@majda.cz"},{"name":"zdne","email":"z@apiary.io"}],"directories":{}},"0.5.3":{"name":"apiary-blueprint-parser","version":"0.5.3","description":"Apiary blueprint parser","homepage":"https://github.com/apiaryio/blueprint-parser","author":{"name":"Apiary Ltd.","email":"team@apiary.io","url":"http://apiary.io/"},"files":["CHANGELOG","LICENSE","README.md","VERSION","examples/example.apib","lib/apiary-blueprint-parser.js","lib/ast.js","bin/blueprint-parser"],"main":"lib/apiary-blueprint-parser","scripts":{"pretest":"make","test":"make test"},"bin":{"blueprint-parser":"bin/blueprint-parser"},"dependencies":{"commander":"2.0.0"},"devDependencies":{"coffee-script":"= 1.4.0","pegjs":"git://github.com/dmajda/pegjs.git#02af83f9b416778878e52e2cbbc22d96e312164e","mocha":"= 1.7.1","chai":"= 1.3.0"},"engines":{"node":">= 0.6.18"},"_id":"apiary-blueprint-parser@0.5.3","dist":{"shasum":"f97a2cf89a9fa8bdc6f5b7a5edc2cb58c8dd34af","tarball":"https://registry.npmjs.org/apiary-blueprint-parser/-/apiary-blueprint-parser-0.5.3.tgz","integrity":"sha512-kndeDvIrRyc4BJhf1goDhSXj6U7Kii0bl34aqJQDywYgp6107LMmrbgnt6Q1dUD9m0OGTTmdk1FwX0RoxWVSuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFeQPI4CFayo+7DH5NIQlQwNLgI54HsRsU01HlJRclRgAiEA8yxVCXS1rOhj/OeTd6AHuglAyrvxR8lT78mUWOZF6rg="}]},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"zdne","email":"z@apiary.io"},"maintainers":[{"name":"apiary","email":"lukas+npm@apiary.io"},{"name":"dmajda","email":"david@majda.cz"},{"name":"zdne","email":"z@apiary.io"}],"directories":{}}},"readme":"Apiary Blueprint Parser\n=======================\n\nA JavaScript parser of [Apiary API blueprints](http://apiary.io/blueprint).\n\nDeprecation warning\n-------\nThe Apiary Blueprint Parser is currently **frozen**. There is no future development planned. \n\nPlease check the new [**API Blueprint**](http://apiblueprint.org) which **supersedes** the **Apiary Blueprint** and is completely open-sourced including its parser, tools and bindings.  \n\nInstallation\n------------\n\n### Node.js\n\n    $ npm install apiary-blueprint-parser\n\nDo not install the parser globally (using the `-g` option), otherwise you won’t be able to use the API.\n\n### Browser\n\nDownload the [latest browser version of the parser](https://apiary-public.s3.amazonaws.com/blueprint-parser/apiary-blueprint-parser-0.5.3.js).\n\nUsage\n-----\n\nIn Node.js, require the module:\n\n```javascript\nvar ApiaryBlueprintParser = require(\"apiary-blueprint-parser\");\n```\n\nIn browser, include the browser version of the parser in your web page or\napplication using the `<script>` tag. The parser will be available in the\n`ApiaryBlueprintParser` global object.\n\nTo parse an API blueprint, just call the `parse` method and pass the blueprint\nas a parameter. The method will return an object representing the parsed\nblueprint or throw an exception if the input is invalid:\n\n```javascript\nvar blueprint = ApiaryBlueprintParser.parse([\n  \"Root resource\",\n  \"GET /\",\n  \"< 200\"\n].join(\"\\n\"));\n\nvar resource = blueprint.sections[0].resources[0];\nconsole.log(resource.description)     // prints \"Root resource\"\nconsole.log(resource.method)          // prints \"GET\"\nconsole.log(resource.url)             // prints \"/\"\nconsole.log(resource.response.status) // prints \"200\"\n```\n\nSee the `src/ast.coffee` file to get an idea about returned objects and their\ncapabilities.\n\nThe exception thrown in case of error will contain `offset`, `line`, `column`,\n`expected`, `found` and `message` properties with more details about the error.\n\nCompatibility\n-------------\n\nThe parser should run well in the following environments:\n\n  * Node.js 0.6.18+\n  * IE 9+\n  * Firefox\n  * Chrome\n  * Safari\n  * Opera\n\nThe parser should also work in IE 8, but this is not fully tested because the\ntest suite runs correctly only in IE 9+.\n","maintainers":[{"email":"sre@apiary.io","name":"apiary-sre"}],"time":{"modified":"2022-06-13T03:12:47.425Z","created":"2012-11-12T18:50:14.160Z","0.1.0":"2012-11-12T18:50:17.206Z","0.1.1":"2012-11-14T12:31:36.103Z","0.2.0":"2012-11-26T14:56:29.251Z","0.3.0":"2012-11-28T18:22:34.973Z","0.4.0":"2013-01-10T20:34:47.537Z","0.4.1":"2013-01-30T20:07:25.854Z","0.4.2":"2013-03-01T15:05:22.513Z","0.4.3":"2013-03-05T09:31:58.707Z","0.4.4":"2013-03-25T17:43:23.635Z","0.5.0":"2014-01-22T11:09:30.302Z","0.5.1":"2014-01-22T11:30:53.922Z","0.5.2":"2014-01-22T11:47:56.899Z","0.5.3":"2014-01-22T12:03:58.387Z"},"author":{"name":"Apiary Ltd.","email":"team@apiary.io","url":"http://apiary.io/"},"readmeFilename":"README.md","homepage":"https://github.com/apiaryio/blueprint-parser"}