{"_id":"grunt-stubby","_rev":"39-3d1c7e2d748144b2e9bcbe5985667284","name":"grunt-stubby","description":"A Grunt plugin for setting up a Stubby mock server based on YAML/JSON/JS configuration files","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.0":{"name":"grunt-stubby","description":"A Grunt plugin for setting up a Stubby server based on YAML/JSON configuration files","version":"0.1.0","homepage":"https://github.com/h2non/grunt-stubby","author":{"name":"Tomas Aparicio","email":"tomas@aparicio.me","url":"http://tomas.aparicio.me"},"repository":{"type":"git","url":"git://github.com/h2non/grunt-stubby.git"},"bugs":{"url":"https://github.com/h2non/grunt-stubby/issues"},"licenses":[{"type":"MIT","url":"https://github.com/h2non/grunt-stubby/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"stubby":"~0.2.0"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1","supertest":"~0.7.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","stubby"],"_id":"grunt-stubby@0.1.0","dist":{"shasum":"0fab8be43648630f9608a79a86741c6190822fc0","tarball":"https://registry.npmjs.org/grunt-stubby/-/grunt-stubby-0.1.0.tgz","integrity":"sha512-9dPahVcstQfDgydPouVK4Fv9I/9isGQT74HswdFhqRXJcoi/0jVLfuMp0RRty0NtoB4t66f8t/XY3OOw0wkxdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFi/3gC4SL7Ga2Ku0n68vNZxAkSPFZMTfFgbW7B08aQgAiBEm2yLGy3Ic/YJixbxaE7Opa6tHzXfhN7TEZ7s/nyitA=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"h2non","email":"tomas@rijndael-project.com"},"maintainers":[{"name":"h2non","email":"tomas@rijndael-project.com"}],"directories":{}},"0.1.1":{"name":"grunt-stubby","description":"A Grunt plugin for setting up a Stubby server based on YAML/JSON configuration files","version":"0.1.1","homepage":"https://github.com/h2non/grunt-stubby","author":{"name":"Tomas Aparicio","email":"tomas@aparicio.me","url":"http://tomas.aparicio.me"},"repository":{"type":"git","url":"git://github.com/h2non/grunt-stubby.git"},"bugs":{"url":"https://github.com/h2non/grunt-stubby/issues"},"licenses":[{"type":"MIT","url":"https://github.com/h2non/grunt-stubby/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"stubby":"~0.2.0"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1","supertest":"~0.7.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","stubby"],"_id":"grunt-stubby@0.1.1","dist":{"shasum":"8b957875e1debf196ce67b21b4c1896401ad802b","tarball":"https://registry.npmjs.org/grunt-stubby/-/grunt-stubby-0.1.1.tgz","integrity":"sha512-oX8ZOzmln8nU5vjyiFTAVeuUMGIp5ozCg1KfG8KIeLoh1X69fxuYxY5eE3dA4ZvJaOaio1KvInv7IW/iEpZ0nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDDrxfPUCLDhupddiwDgzeILwzf9UADYYKY6kv0WWr2lAiA1NvEj/6OmGQFulymhRkhLST3arMDn3LMvB3zJzs2Yhg=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"h2non","email":"tomas@rijndael-project.com"},"maintainers":[{"name":"h2non","email":"tomas@rijndael-project.com"}],"directories":{}},"0.1.2":{"name":"grunt-stubby","description":"A Grunt plugin for setting up a Stubby mock server based on YAML/JSON/JS configuration files","version":"0.1.2","homepage":"https://github.com/h2non/grunt-stubby","author":{"name":"Tomas Aparicio","email":"tomas@aparicio.me","url":"http://tomas.aparicio.me"},"repository":{"type":"git","url":"git://github.com/h2non/grunt-stubby.git"},"bugs":{"url":"https://github.com/h2non/grunt-stubby/issues"},"licenses":[{"type":"MIT","url":"https://github.com/h2non/grunt-stubby/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"stubby":"~0.2.0"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1","supertest":"~0.7.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","stubby"],"_id":"grunt-stubby@0.1.2","dist":{"shasum":"3695fe5db44e87eff1c2222fb53e3c324f4838d2","tarball":"https://registry.npmjs.org/grunt-stubby/-/grunt-stubby-0.1.2.tgz","integrity":"sha512-i1iBimyDrgaXPmokX7r0Y5RxY+4uUU8JU70gaoNTxovwIi5mkpaDZzxNjMZmWO1WM8XCCJUlAuTFz4ZrBcyHHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCl0acmMeMqRnMe724viL1QPc6rSUpxquk4VBxetEK61QIhAKSP7t92mU5gogp8Kq6M6Hayy86U+bcQMU862Uo6/Awh"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"h2non","email":"tomas@aparicio.me"},"maintainers":[{"name":"h2non","email":"tomas@rijndael-project.com"}],"directories":{}},"0.1.3":{"name":"grunt-stubby","description":"A Grunt plugin for setting up a Stubby mock server based on YAML/JSON/JS configuration files","version":"0.1.3","homepage":"https://github.com/h2non/grunt-stubby","author":{"name":"Tomas Aparicio","email":"tomas@aparicio.me","url":"http://tomas.aparicio.me"},"repository":{"type":"git","url":"git://github.com/h2non/grunt-stubby.git"},"bugs":{"url":"https://github.com/h2non/grunt-stubby/issues"},"licenses":[{"type":"MIT","url":"https://github.com/h2non/grunt-stubby/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"stubby":"~0.2.0"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1","supertest":"~0.7.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","stubby","mock","server","stubs","task"],"_id":"grunt-stubby@0.1.3","dist":{"shasum":"5c7353165db68edc1be0ba91f8bdbf53204af787","tarball":"https://registry.npmjs.org/grunt-stubby/-/grunt-stubby-0.1.3.tgz","integrity":"sha512-gzZVDsRuAuN4lRTJZUHMZYJsOC4/14UDQvpBEo+kUHNRpi/oSG2MGKo9RmO+wmUHJPiwLhCztyTBJfogbWhaFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC3eGhwkzo+H2vQF6JRrulN4usUwIKA2qcmunDS7yy7YAiA17siqkJfhRKJZbhRIAvPZ017xA0ZvmgJkKwl7Isa7xw=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"h2non","email":"tomas@aparicio.me"},"maintainers":[{"name":"h2non","email":"tomas@rijndael-project.com"}],"directories":{}},"0.2.4":{"name":"grunt-stubby","description":"A Grunt plugin for setting up a Stubby mock server based on YAML/JSON/JS configuration files","version":"0.2.4","homepage":"https://github.com/h2non/grunt-stubby","author":{"name":"Tomas Aparicio","email":"tomas@aparicio.me","url":"http://tomas.aparicio.me"},"repository":{"type":"git","url":"git://github.com/h2non/grunt-stubby.git"},"bugs":{"url":"https://github.com/h2non/grunt-stubby/issues"},"licenses":[{"type":"MIT","url":"https://github.com/h2non/grunt-stubby/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"stubby":"~0.2.0"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1","supertest":"~0.7.1","grunt-release":"~0.5.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","stubby","mock","server","stubs","task"],"_id":"grunt-stubby@0.2.4","dist":{"shasum":"0bc3de80ce233064f6d8dc9b53b9e453a01f774f","tarball":"https://registry.npmjs.org/grunt-stubby/-/grunt-stubby-0.2.4.tgz","integrity":"sha512-xhZDDcXbB0/pfJt4xTmA/HVrunDZ/253m2L7F0vodWH0nxSrP2POg9quc5qS9Ap6ReUdZoaDemjLzrSdAgpt1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWsiZlD9VQZh3ZTF0yydRHv0zYf8zCdBnNZVImgdqoVgIhAMdIJO0EcgYv8BU5Zm/utBmxhnX6nu/pThzdQpU0KNM9"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"h2non","email":"tomas@aparicio.me"},"maintainers":[{"name":"h2non","email":"tomas@rijndael-project.com"}],"directories":{}},"0.1.4":{"name":"grunt-stubby","description":"A Grunt plugin for setting up a Stubby mock server based on YAML/JSON/JS configuration files","version":"0.1.4","homepage":"https://github.com/h2non/grunt-stubby","author":{"name":"Tomas Aparicio","email":"tomas@aparicio.me","url":"http://tomas.aparicio.me"},"repository":{"type":"git","url":"git://github.com/h2non/grunt-stubby.git"},"bugs":{"url":"https://github.com/h2non/grunt-stubby/issues"},"licenses":[{"type":"MIT","url":"https://github.com/h2non/grunt-stubby/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"stubby":"~0.2.0"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1","supertest":"~0.7.1","grunt-release":"~0.5.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","stubby","mock","server","stubs","task"],"_id":"grunt-stubby@0.1.4","dist":{"shasum":"b079fe75cd42c7c55b7187535f3b9f6e2accc704","tarball":"https://registry.npmjs.org/grunt-stubby/-/grunt-stubby-0.1.4.tgz","integrity":"sha512-xA9ej/+9Z+wFagrFew9U/sp2BKdsRyeon7+HsIyKwlfcSojWwnzIKu1pdqqIjCbrSGjgG60M+bs3ygixJiU5jQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGAOty2YcwT+HJoTYTsDjGBQBNYLninVgDVsPBoAefcMAiA4P2erIjbm/qYRaWB68EhSKu33DCvsCvqvrNh8zQbJiw=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"h2non","email":"tomas@aparicio.me"},"maintainers":[{"name":"h2non","email":"tomas@rijndael-project.com"}],"directories":{}},"0.2.0":{"name":"grunt-stubby","description":"A Grunt plugin for setting up a Stubby mock server based on YAML/JSON/JS configuration files","version":"0.2.0","homepage":"https://github.com/h2non/grunt-stubby","author":{"name":"Tomas Aparicio","email":"tomas@aparicio.me","url":"http://tomas.aparicio.me"},"repository":{"type":"git","url":"git://github.com/h2non/grunt-stubby.git"},"bugs":{"url":"https://github.com/h2non/grunt-stubby/issues"},"licenses":[{"type":"MIT","url":"https://github.com/h2non/grunt-stubby/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"stubby":"~0.3.1"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1","supertest":"~1.2.0","grunt-release":"~0.5.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","stubby","mock","server","stubs","task"],"gitHead":"299864a62c12389f4c0726d9ecb059649f0d7a18","_id":"grunt-stubby@0.2.0","_shasum":"f72c2ce1abb918b2facb3e51f87b2a4460be9331","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"h2non","email":"tomas@aparicio.me"},"maintainers":[{"name":"h2non","email":"tomas@rijndael-project.com"}],"dist":{"shasum":"f72c2ce1abb918b2facb3e51f87b2a4460be9331","tarball":"https://registry.npmjs.org/grunt-stubby/-/grunt-stubby-0.2.0.tgz","integrity":"sha512-qQRcha+pubwChBPzoYXwnpPeftuAHGPFofCnTe5nOS2QjzBkJj0ef+FGwjaCIf601SMI23xLcoX/OrbkrcNEAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEAvood2jv2h7RCWkbILpwKJEOy53dfJvUg8N4psbr8vAiEAgIQ4l+h4oVUeDyglnQGkBWhThfMAYjS0/IUvGybFRwQ="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/grunt-stubby-0.2.0.tgz_1468580207097_0.4382951750885695"},"directories":{}},"0.2.1":{"name":"grunt-stubby","description":"A Grunt plugin for setting up a Stubby mock server based on YAML/JSON/JS configuration files","version":"0.2.1","homepage":"https://github.com/h2non/grunt-stubby","author":{"name":"Tomas Aparicio","email":"tomas@aparicio.me","url":"http://tomas.aparicio.me"},"repository":{"type":"git","url":"git://github.com/h2non/grunt-stubby.git"},"bugs":{"url":"https://github.com/h2non/grunt-stubby/issues"},"licenses":[{"type":"MIT","url":"https://github.com/h2non/grunt-stubby/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"stubby":"~0.3.1"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1","supertest":"~1.2.0","grunt-release":"~0.5.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","stubby","mock","server","stubs","task"],"gitHead":"eac904155f9c1d91f2b68a66d9f38d64f344778b","_id":"grunt-stubby@0.2.1","_shasum":"0d3e301ecc87bf49ae78c7b7259ce855987e5892","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"h2non","email":"tomas@aparicio.me"},"maintainers":[{"name":"h2non","email":"tomas@rijndael-project.com"}],"dist":{"shasum":"0d3e301ecc87bf49ae78c7b7259ce855987e5892","tarball":"https://registry.npmjs.org/grunt-stubby/-/grunt-stubby-0.2.1.tgz","integrity":"sha512-L7Jpcg+RhIePeZslqnU8QgVDU/l0yppqQFfvK30k0CzoTRWfFJoN4lMh7Jq0rx2B80ee8iBSQxpWDOqc1JdA5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4DQouBNxkSd3ID3JimPb9mWpl34E9fT3yTHjkoQf2PQIgP474WLZJhi6Q9tz1f8KOmj6l7g+tFL051p5ESG1XIGs="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/grunt-stubby-0.2.1.tgz_1468580255920_0.3068645673338324"},"directories":{}}},"readme":"# Grunt Stubby [![Build Status](https://travis-ci.org/h2non/grunt-stubby.png)](https://travis-ci.org/h2non/grunt-stubby) [![Dependency Status](https://gemnasium.com/h2non/grunt-stubby.png)](https://gemnasium.com/h2non/grunt-stubby)\n\nA Grunt plugin for setting up a [Stubby](https://github.com/mrak/stubby4node) mock server based on YAML/JSON/JS configuration files\n\n## Getting Started\n\nThis plugin requires Grunt `~0.4.1`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-stubby --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-stubby');\n```\n\n## The \"stubby\" task\n\n### Usage Examples\n\n#### Default Options\n\n```js\ngrunt.initConfig({\n  stubby: {\n    stubsServer: {\n      // note the array collection instead of an object\n      files: [{\n        src: [ 'mocks/*.{json,yaml,js}' ]\n      }]\n    }\n  }\n})\n```\n\n#### Custom Options\n\n```js\ngrunt.initConfig({\n  stubby: {\n    stubsServer: {\n      options: {\n        callback: function (server, options) {\n          server.get(1, function (err, endpoint) {\n            if (!err)\n             console.log(endpoint);\n          });\n        },\n        stubs: 8000,\n        tls: 8443,\n        admin: 8010\n      },\n      // note the array collection instead of an object\n      files: [{\n        src: [ 'mocks/*.{json,yaml,js}' ]\n      }]\n    }\n  }\n})\n```\n\n### Options\n\n#### options.stubs\nType: `Number`\nDefault value: `8882`\n\nPort number to run the stubs portal\n\n#### options.tls\nType: `Number`\nDefault value: `7443`\n\nPort number to run the stubs portal over https\n\n#### options.admin\nType: `Number`\nDefault value: `8889`\n\nPort number to run the admin portal\n\n#### options.data\nType: `Array/Object`\nDefault value: `null`\n\nJavaScript Object/Array containing endpoint data.\nThis option will be automatically filled from the JSON/YAML config files, however you can additionally add a customized data\n\n#### options.location\nType: `String`\nDefault value: `localhost`\n\nAddress/hostname at which to run stubby\n\n#### options.relativeFilesPath\nType: `Boolean`\nDefault value: `false`\n\nWhen you use the 'file' property for the request/response config Objects, enabling this options\nthe data file path is relative to the the config file where it has been declared.\n\n#### options.key\nType: `String`\nDefault value: `null`\n\nPath to keyfile contents (in PEM format)\n\n#### options.cert\nType: `String`\nDefault value: `null`\n\nCertificate file path contents (in PEM format)\n\n#### options.pfx\nType: `String`\nDefault value: `null`\n\nPfx file path contents (mutually exclusive with key/cert options)\n\n#### options.watch\nType: `String`\nDefault value: `null`\n\nFilename to monitor and load as stubby's data when changes occur\n\n#### options.mute\nType: `Boolean`\nDefault value: `true`\n\nPass in false to have console output (if available)\n\n#### options.callback\nType: `Function`\nDefault value: `null`\n\nCallback function when the server starts successfully.\nThe passed arguments are:\n\n* `server` - The Stubby server instance object\n* `options` - The server config options object\n\n#### options.persistent\nType: `Boolean`\nDefault value: `false`\n\nRun the task in a persistent keep-alive server mode. Other tasks not will run until the Stubby server stops\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style.\n\nAdd unit tests for any new or changed functionality.\nLint and test your code using [Grunt](http://gruntjs.com/).\n\n### Testing\n\nClone the repository\n```shell\n$ git clone https://github.com/h2non/grunt-stubby.git && cd grunt-stubby\n```\n\nInstall dependencies\n```shell\n$ npm install\n```\n\nRun tests\n```shell\n$ npm test\n```\n\n## Release History\n\n* `0.1.4` 23.09.2013\n  - Added persisten task option\n* `0.1.3` 18.09.2013\n  - Added support to obtain relative paths from config file directory for the request/response data files\n* `0.1.2` 13.09.2013\n  - Added support to JavaScript sources configuration files\n  - Detect and use full paths\n* `0.1.1` 09.09.2013\n  - Removed basePath files option\n* `0.1.0` 01.09.2013\n  - Initial release\n\n## TODO\n\nYou miss something? Open an issue or PR!\n\n## License\n\nUnder [MIT](https://github.com/h2non/grunt-stubby/) license\n","maintainers":[{"name":"h2non","email":"tomas@rijndael-project.com"}],"time":{"modified":"2022-06-18T16:03:19.171Z","created":"2013-09-01T18:26:14.695Z","0.1.0":"2013-09-01T18:26:18.323Z","0.1.1":"2013-09-09T23:04:54.491Z","0.1.2":"2013-09-17T17:08:29.880Z","0.1.3":"2013-09-18T11:00:46.390Z","0.2.4":"2013-09-23T10:51:00.082Z","0.1.4":"2013-09-23T11:04:24.720Z","0.2.0":"2016-07-15T10:56:49.571Z","0.2.1":"2016-07-15T10:57:38.914Z"},"author":{"name":"Tomas Aparicio","email":"tomas@aparicio.me","url":"http://tomas.aparicio.me"},"repository":{"type":"git","url":"git://github.com/h2non/grunt-stubby.git"},"users":{},"homepage":"https://github.com/h2non/grunt-stubby","keywords":["gruntplugin","stubby","mock","server","stubs","task"],"bugs":{"url":"https://github.com/h2non/grunt-stubby/issues"},"readmeFilename":"README.md"}