{"_id":"spirit-middleware","_rev":"31-00eafd72a6b75ddaa440068a30894759","name":"spirit-middleware","time":{"modified":"2022-06-26T22:55:07.870Z","created":"2014-05-31T02:07:03.658Z","0.0.0":"2014-05-31T02:07:07.587Z","0.1.0":"2014-05-31T08:25:07.031Z","0.1.1":"2014-05-31T08:30:56.511Z","0.2.1":"2014-06-01T00:07:25.282Z","0.3.1":"2014-06-18T07:23:20.197Z","0.0.1":"2014-07-17T03:34:04.220Z","1.0.0":"2014-07-18T02:49:33.644Z","1.0.1":"2014-07-24T02:50:39.016Z"},"maintainers":[{"name":"alexray","email":"alexjamesray@gmail.com"}],"dist-tags":{"latest":"1.0.1"},"description":"A simple middleware for the Spirit static file generator","readme":"### Spirit Middleware\n\nThis is a small light weight middleware manager included in the [Spirit Core]( http://github.com/alex-ray/spirit-core) static file generator.\n\nIt is used to call a series of functions in the order they are given.\n\n#### Usage\n\ninstall [Spirit Core]( http://github.com/alex-ray/spirit-core )\n\n```\n  npm install spirit-core\n```\n\nPass it a middleware `Function` to be called with two arguments `Function` and the spirit `Object` .\n\nThe first is a callback to continue to the next piece of middleware ( if one exists ) .\nThe second is the spirit `Object` equipped with its own Api which you can find [ here. ]( http://github.com/spirit-core )\n\n```javascript\n\n  var spiritCore = require( 'spirit-core' ) ;\n\n  spiritCore.use( someMiddleware ) ;\n\n  function someMiddleware ( next, spirit ) {\n    console.log( \"Im using middleware !.\" ) ;\n    next( ) ;\n  }\n```\n\nHand made in San Francisco California by [ Alex Ray ]( http://twitter.com/_alexray ) .\n","versions":{"0.0.1":{"name":"spirit-middleware","version":"0.0.1","description":"A simple middleware for the Spirit static file generator","main":"spirit-middleware.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"http://github.com/alex-ray/spirit-middleware.js"},"keywords":["middleware","spirit"],"author":{"name":"Alexander James Ray","email":"alexjamesray@gmail.com","url":"http://alexray.me/"},"license":"MIT","bugs":{"url":"https://github.com/alex-ray/spirit-middleware.js/issues"},"devDependencies":{"mocha":"*","chai":"*"},"homepage":"https://github.com/alex-ray/spirit-middleware.js","_id":"spirit-middleware@0.0.1","_shasum":"d2f6c13d3fff2da25bff9b49ae6ebb7eaf24988d","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"alexray","email":"alexjamesray@gmail.com"},"maintainers":[{"name":"alexray","email":"alexjamesray@gmail.com"}],"dist":{"shasum":"d2f6c13d3fff2da25bff9b49ae6ebb7eaf24988d","tarball":"https://registry.npmjs.org/spirit-middleware/-/spirit-middleware-0.0.1.tgz","integrity":"sha512-GVkESDRJy5Kzcf0xxeG/HVyJS1ZaSb84PdpRuIgjjV8+G/l3tJrUMmR3DelXufKqhx6lq1RoTjVr+40xGq+d+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHR/Don8SrwHDoOvahKBkdgr8C/ZKbknuQBTz+0LUkA6AiEA3ZaZW5Ngqf/FhOpQ9e8xV+fcf+M+p6+CgcH2jKg1utM="}]}},"1.0.0":{"name":"spirit-middleware","version":"1.0.0","description":"A simple middleware for the Spirit static file generator","main":"spirit-middleware.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"http://github.com/alex-ray/spirit-middleware.js"},"keywords":["middleware","spirit"],"author":{"name":"Alexander James Ray","email":"alexjamesray@gmail.com","url":"http://alexray.me/"},"license":"MIT","bugs":{"url":"https://github.com/alex-ray/spirit-middleware.js/issues"},"devDependencies":{"mocha":"*","chai":"*"},"homepage":"https://github.com/alex-ray/spirit-middleware.js","_id":"spirit-middleware@1.0.0","_shasum":"803afc97ed19ee3f4dadc9aaca3cabc90a4abd82","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"alexray","email":"alexjamesray@gmail.com"},"maintainers":[{"name":"alexray","email":"alexjamesray@gmail.com"}],"dist":{"shasum":"803afc97ed19ee3f4dadc9aaca3cabc90a4abd82","tarball":"https://registry.npmjs.org/spirit-middleware/-/spirit-middleware-1.0.0.tgz","integrity":"sha512-FdUZP/3vbROxYkcqcEaXmPe0NiDMhnV3wkTvwinntsjBZMVH4M5TbX0P+GGLv5aD2aWbSo2nDDK33JvLpA1wqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTkTeeHmudAcP0OUSEGxIjGoxwSMOENsXiolJvdhKjUgIhAItCQVaaLj+iGLeYPWgRsFNRSi8w+0PDmOT4sls5sPNR"}]}},"1.0.1":{"name":"spirit-middleware","version":"1.0.1","description":"A simple middleware for the Spirit static file generator","main":"spirit-middleware.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"http://github.com/alex-ray/spirit-middleware.js"},"keywords":["middleware","spirit"],"author":{"name":"Alexander James Ray","email":"alexjamesray@gmail.com","url":"http://alexray.me/"},"license":"MIT","bugs":{"url":"https://github.com/alex-ray/spirit-middleware.js/issues"},"devDependencies":{"mocha":"*","chai":"*"},"homepage":"https://github.com/alex-ray/spirit-middleware.js","_id":"spirit-middleware@1.0.1","_shasum":"2acb306b2b33407e81e6a77335f7238a4b96b811","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"alexray","email":"alexjamesray@gmail.com"},"maintainers":[{"name":"alexray","email":"alexjamesray@gmail.com"}],"dist":{"shasum":"2acb306b2b33407e81e6a77335f7238a4b96b811","tarball":"https://registry.npmjs.org/spirit-middleware/-/spirit-middleware-1.0.1.tgz","integrity":"sha512-RF36+i840/LjezQXIQLq1sPjGDFRvk+0UKifwQW59Vp8QQJVlog976F3GHCSJdlThN+tHddGcXGjXmK7VF7X3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCubgBMF5PLvx9hqn3brK0Z/zMmLp+52VobG6vwn8OwPAIgXCqUaefWjElv7gz4MEP/fGsnuSZttVygxGXBm7ZeddQ="}]}}},"homepage":"https://github.com/alex-ray/spirit-middleware.js","keywords":["middleware","spirit"],"repository":{"type":"git","url":"http://github.com/alex-ray/spirit-middleware.js"},"author":{"name":"Alexander James Ray","email":"alexjamesray@gmail.com","url":"http://alexray.me/"},"bugs":{"url":"https://github.com/alex-ray/spirit-middleware.js/issues"},"license":"MIT","readmeFilename":"README.md"}