{"_id":"femto","_rev":"29-d8abfb5fca9306eaf065688da7dc7c03","name":"femto","description":"Femto size middleware framework, for minimal APIs.","dist-tags":{"0.0.1":"0.0.1","latest":"0.0.8"},"versions":{"0.0.1":{"name":"femto","version":"0.0.1","description":"Femto size middleware framework, for minimal APIs.","main":"index.js","repository":{"type":"git","url":"https://github.com/gaborsar/femto"},"keywords":["Femto","API","framework","middleware"],"license":"MIT","dependencies":{},"devDependencies":{"jslint":"*","mocha":"*"},"_id":"femto@0.0.1","dist":{"shasum":"92c8f1e19f947f7810392384456f4b91c79886a2","tarball":"https://registry.npmjs.org/femto/-/femto-0.0.1.tgz","integrity":"sha512-fs8lSETA+pIpxfVP2C8oDXcpHsDam7GMJnMbNFPacCEaulxLSK5DgWW9BRy/ptam/+Yf/UZRTw/8mNjJMhJp1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWHFDAIBhzfJlEP908RCLF4OLNqwqrqBg0xTF3cocoxwIhAJGQ5puDPxV/G1vyGcxQBkzOSTzpyNffsTCpGG/DiQ9g"}]},"_from":"femto","_npmVersion":"1.2.18","_npmUser":{"name":"gaborsar","email":"gabor.sar@gmail.com"},"maintainers":[{"name":"gaborsar","email":"gabor.sar@gmail.com"}]},"0.0.2":{"name":"femto","version":"0.0.2","description":"Femto size middleware framework, for minimal APIs.","main":"index.js","homepage":"https://github.com/gaborsar/femto","repository":{"type":"git","url":"https://github.com/gaborsar/femto"},"bugs":{"url":"https://github.com/gaborsar/femto/issues"},"keywords":["Femto","API","framework","middleware"],"license":"MIT","dependencies":{},"devDependencies":{"jslint":"*","mocha":"*"},"_id":"femto@0.0.2","dist":{"shasum":"0e0a7a60cdc869e597d0f5664e8398b3edac2367","tarball":"https://registry.npmjs.org/femto/-/femto-0.0.2.tgz","integrity":"sha512-6tuqHMmWPrgiD6oaoGChUp0PmWYdVeTH79hQTeubEnr6Ug40gSp2Q8K7r25x3OT5jxvj/BnbVuwqd9o0g1gi/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZX53mqNWKvVYQHGy0hbRH597+CM1g+s0ZaXH0iAG4kQIhAPDCY0duss1yoaYATY4Zsr7pVBtnMWF7Ho3IbikFX1kO"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"gaborsar","email":"gabor.sar@gmail.com"},"maintainers":[{"name":"gaborsar","email":"gabor.sar@gmail.com"}]},"0.0.4":{"name":"femto","version":"0.0.4","description":"Femto size middleware framework, for minimal APIs.","main":"index.js","homepage":"https://github.com/gaborsar/femto","repository":{"type":"git","url":"https://github.com/gaborsar/femto"},"bugs":{"url":"https://github.com/gaborsar/femto/issues"},"keywords":["Femto","API","framework","middleware"],"license":"MIT","dependencies":{},"devDependencies":{"jslint":"*","mocha":"*"},"_id":"femto@0.0.4","dist":{"shasum":"37f79d9141ae58f91faa476b46e305e47f8eac6d","tarball":"https://registry.npmjs.org/femto/-/femto-0.0.4.tgz","integrity":"sha512-FGvNvlqZQBvdDvj5L5rzCUdPUtcf5Uipgjl9w3G9IumZTH2bm4AXpx9xxJz3X6N4Ua3stISI1Gg6iHnRgUqCQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCK/9cZwWwMH/3VscszDiVQ2Y9/kBfHPsVPFAwYpjvVdgIhAIdzXhrDM7NIhWvMYqkLh5Xbvv/08LdliufD2xpa5QUO"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"gaborsar","email":"gabor.sar@gmail.com"},"maintainers":[{"name":"gaborsar","email":"gabor.sar@gmail.com"}]},"0.0.5":{"name":"femto","version":"0.0.5","description":"Femto size middleware framework, for minimal APIs.","main":"index.js","homepage":"https://github.com/gaborsar/femto","repository":{"type":"git","url":"https://github.com/gaborsar/femto"},"bugs":{"url":"https://github.com/gaborsar/femto/issues"},"keywords":["Femto","API","framework","middleware"],"license":"MIT","dependencies":{"file-mime":"~0.0.1"},"devDependencies":{"jslint":"*","mocha":"*"},"_id":"femto@0.0.5","dist":{"shasum":"21b6ff0f295ef5818b55f53db4afadd14911f105","tarball":"https://registry.npmjs.org/femto/-/femto-0.0.5.tgz","integrity":"sha512-wwBcSobyNYTGojBvkps3s9aklq2ew4VQwUDn/Na4pHp3tBQHmlVOxWdI7bD0KtETqWNuXEVZwqcWh21ZEjLALQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEXzKayD8UwVp5ILoFlWvZhEAzgE+fd/TESvRqCGlFz2AiEAnm9YmG1xmjrpKS9vNjNbG4SUHB/6d94+b7+wG5HQEco="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"gaborsar","email":"gabor.sar@gmail.com"},"maintainers":[{"name":"gaborsar","email":"gabor.sar@gmail.com"}]},"0.0.6":{"name":"femto","version":"0.0.6","description":"Femto size middleware framework, for minimal APIs.","main":"index.js","directories":{"test":"tests"},"scripts":{"test":"mocha tests","lint":"./jslint.sh"},"homepage":"https://github.com/gaborsar/femto","repository":{"type":"git","url":"https://github.com/gaborsar/femto"},"bugs":{"url":"https://github.com/gaborsar/femto/issues"},"keywords":["Femto","API","framework","middleware"],"author":{"name":"Gabor Sar","email":"gabor.sar@gmail.com","url":"http://github.com/gaborsar"},"license":"MIT","dependencies":{"file-mime":"~0.0.6","delegates":"~0.0.3"},"devDependencies":{"jslint":"*","mocha":"*"},"_id":"femto@0.0.6","dist":{"shasum":"445298cf806a86da292dae559ab9a496910c52e7","tarball":"https://registry.npmjs.org/femto/-/femto-0.0.6.tgz","integrity":"sha512-jm9jQhoOPt7sfBX+18EBN1tM/pdv4E5/E8HPmefJXUTA0IYJ+PHIprYbIWG+9k/xrarcJeRbKnY1cbqO7vbyZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdYcc/3I9il9GrzTJazVLbDV+Mvsvf4igQBHE4za+NeAIhAOsKrACDfAK9xApPOlUpgAd7PnBVMtKBDi2qr7J0gs3E"}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"gaborsar","email":"gabor.sar@gmail.com"},"maintainers":[{"name":"gaborsar","email":"gabor.sar@gmail.com"}]},"0.0.7":{"name":"femto","version":"0.0.7","description":"Femto size middleware framework, for minimal APIs.","main":"index.js","directories":{"test":"tests"},"scripts":{"test":"mocha tests","lint":"./jslint.sh"},"homepage":"https://github.com/gaborsar/femto","repository":{"type":"git","url":"https://github.com/gaborsar/femto"},"bugs":{"url":"https://github.com/gaborsar/femto/issues"},"keywords":["Femto","API","framework","middleware"],"author":{"name":"Gabor Sar","email":"gabor.sar@gmail.com","url":"http://github.com/gaborsar"},"license":"MIT","dependencies":{"file-mime":"~0.0.6","delegates":"~0.0.3"},"devDependencies":{"jslint":"*","mocha":"*"},"_id":"femto@0.0.7","dist":{"shasum":"a4ece165632908c1bce4c13eae14d8151d10accb","tarball":"https://registry.npmjs.org/femto/-/femto-0.0.7.tgz","integrity":"sha512-hNbZ1zIBpIPqKWpFhL8HT3d/304CKUAfgV89DysRhwhFaJqJbNkX1P0c8UoALafBBpg4HE7gFELttRK3IV+tEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiH7LE5dRmS0Do/dp8Aojv5LiSW5C6+5QKcGVyRJPgDgIhAIYPxOWi2OIVr3nlC/cLKoNKrfSkBgl3dCUFjAzwp98i"}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"gaborsar","email":"gabor.sar@gmail.com"},"maintainers":[{"name":"gaborsar","email":"gabor.sar@gmail.com"}]},"0.0.8":{"name":"femto","version":"0.0.8","description":"Femto size middleware framework, for minimal APIs.","main":"index.js","scripts":{"test":"mocha","lint":"./jslint.sh"},"homepage":"https://github.com/gaborsar/femto","repository":{"type":"git","url":"git://github.com/gaborsar/femto.git"},"bugs":{"url":"https://github.com/gaborsar/femto/issues"},"keywords":["Femto","API","framework","middleware"],"author":{"name":"Gabor Sar","email":"gabor.sar@gmail.com","url":"http://github.com/gaborsar"},"license":"MIT","dependencies":{"file-mime":"~0.0.6","delegates":"~0.0.3"},"devDependencies":{"jslint":"*","mocha":"*"},"_id":"femto@0.0.8","dist":{"shasum":"952c58db385b47881f76a0ec8d9f8ae5e286ee55","tarball":"https://registry.npmjs.org/femto/-/femto-0.0.8.tgz","integrity":"sha512-0R/ZH+/DgZn1nD8ggsWFrrHBp1e6hR1nMY88ZBVsEmxikSPGl0nK55o2+ZOXUUc1eUkQJDp0Iffw6OVpCrAGnA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFF1aPyeUYQv+BoWxcYSnFXy3ACqRO9g8fdvJP2YGAOjAiAm/cZSOb95aPnvXxC/RTG6PssiaoJ+JKzeNdBww4zKtw=="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"gaborsar","email":"gabor.sar@gmail.com"},"maintainers":[{"name":"gaborsar","email":"gabor.sar@gmail.com"}]}},"readme":"# Femto\n\nFemto size middleware framework, for minimal APIs.\n\n## Background\n\nInspired by express and Koa.\nIn fact I needed something like Koa, without generators (to support an older node.js version).\n\n## Installation\n\n```Shell\n$ npm install femto\n```\n\n## Running unit tests, and JSLint validation\n\nInstall dev dependencies.\n```Shell\n$ npm install\n```\n\nRun tests.\n```Shell\n$ npm test\n```\n\nCheck code quality.\n```Shell\n$ npm run lint\n```\n\n## Example\n\n```JavaScript\n'use strict';\n\nvar femto = require('femto');\n\nvar app = femto();\n\napp.use(function (next) {\n  this.body = { message: 'Hello World' };\n  next();\n});\n\napp.on('error', function (err, context) {\n  if (context) {\n    context.body = { error: true };\n    context.respond();\n  }\n});\n\napp.listen(process.env.PORT || 3000);\n\nprocess.title = 'femto';\nprocess.on('uncaughtException', function (err) {\n  console.error('uncaughtException', err.stack);\n});\n```\n\n## License\n\nMIT\n","maintainers":[{"name":"gaborsar","email":"gabor.sar@gmail.com"}],"time":{"modified":"2022-06-18T00:09:32.413Z","created":"2014-03-04T07:32:59.964Z","0.0.1":"2014-03-04T07:33:01.946Z","0.0.2":"2014-03-17T20:38:41.491Z","0.0.4":"2014-03-26T10:13:49.665Z","0.0.5":"2014-03-29T23:34:25.388Z","0.0.6":"2014-05-30T15:09:02.943Z","0.0.7":"2014-05-30T15:32:33.894Z","0.0.8":"2014-06-05T14:37:16.088Z"},"readmeFilename":"README.md","keywords":["Femto","API","framework","middleware"],"repository":{"type":"git","url":"git://github.com/gaborsar/femto.git"},"license":"MIT","homepage":"https://github.com/gaborsar/femto","bugs":{"url":"https://github.com/gaborsar/femto/issues"},"author":{"name":"Gabor Sar","email":"gabor.sar@gmail.com","url":"http://github.com/gaborsar"}}