{"_id":"falcor-express","_rev":"31-613e559ad4c65e967ba6d1a9a10f10f2","name":"falcor-express","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.1":{"name":"falcor-express","version":"0.1.1","author":{"url":"https://github.com/Netflix/falcor-express/authors.txt","name":"Netflix"},"_id":"falcor-express@0.1.1","maintainers":[{"name":"michael.paulson","email":"michael.b.paulson@gmail.com"}],"homepage":"https://github.com/Netflix/falcor-express","bugs":{"url":"https://github.com/Netflix/falcor-express/issues"},"dist":{"shasum":"da143e50e42680a263a4c99a98b2fb4aae2e9add","tarball":"https://registry.npmjs.org/falcor-express/-/falcor-express-0.1.1.tgz","integrity":"sha512-obG6R85b/USO28N64RVipWDhja+vYuM2e3ISlIz2mB28k+4Rd/akGewUeCrDVS4G2NFSK06uEBVqu0l/elu/eA==","signatures":[{"sig":"MEQCIFEJu8gt6eV4IyM9k0JF/PAEBjxS6vVYM2k5kdDyU3IBAiAbx52hgHDN9g0d+IcGwRAm8amUemwvbgNqHPwKuDzPFg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/index.js","_from":".","_shasum":"da143e50e42680a263a4c99a98b2fb4aae2e9add","gitHead":"d2111268eecf70976cf39b8c3fe8375575c4de65","scripts":{"lint":"node node_modules/gulp/bin/gulp.js lint","test":"node node_modules/gulp/bin/gulp.js test"},"_npmUser":{"name":"michael.paulson","email":"michael.b.paulson@gmail.com"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0.html","type":"Apache License, Version 2.0"}],"repository":{"url":"git+https://github.com/Netflix/falcor-express.git","type":"git"},"_npmVersion":"2.8.4","description":"A falcor server for express.","directories":{},"_nodeVersion":"0.10.24","dependencies":{"rx":"~2.3.24","express":"~4.11.1","body-parser":"^1.12.4"},"devDependencies":{"chai":"^3.2.0","gulp":"^3.9.0","sinon":"^1.15.4","eslint":"^0.21.0","gulp-mocha":"^2.1.3","gulp-eslint":"^0.15.0","falcor-router":"0.2.4"}},"0.1.2":{"name":"falcor-express","version":"0.1.2","author":{"url":"https://github.com/Netflix/falcor-express/authors.txt","name":"Netflix"},"_id":"falcor-express@0.1.2","maintainers":[{"name":"michael.paulson","email":"michael.b.paulson@gmail.com"}],"homepage":"https://github.com/Netflix/falcor-express","bugs":{"url":"https://github.com/Netflix/falcor-express/issues"},"dist":{"shasum":"9e6906a221a030d51fafe21fb8484f94dbc6fae2","tarball":"https://registry.npmjs.org/falcor-express/-/falcor-express-0.1.2.tgz","integrity":"sha512-9M3kZM2RuEA5bZyDVg0AFaeA/kirnKteHKER6WJQOlGT8Bp7XFqNm9T2A5en+1p4tCmlrk+aasRjJNIKfynPNQ==","signatures":[{"sig":"MEYCIQC7iXoFjbfsWNXS0gQ9bVd5CUO+99zRQ5X/Us+5oNPUgQIhAIwnG0bNOP2ZL5CluJ8UIMnz9WyJn9W5yHRel4geB0+8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/index.js","_from":".","_shasum":"9e6906a221a030d51fafe21fb8484f94dbc6fae2","gitHead":"9be37563569f746f7da639123eaad83851f38e2d","scripts":{"lint":"node node_modules/gulp/bin/gulp.js lint","test":"node node_modules/gulp/bin/gulp.js test"},"_npmUser":{"name":"michael.paulson","email":"michael.b.paulson@gmail.com"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0.html","type":"Apache License, Version 2.0"}],"repository":{"url":"git+https://github.com/Netflix/falcor-express.git","type":"git"},"_npmVersion":"2.8.4","description":"A falcor server for express.","directories":{},"_nodeVersion":"0.10.24","dependencies":{"rx":"~2.3.24","express":"~4.11.1","body-parser":"^1.12.4"},"devDependencies":{"chai":"^3.2.0","gulp":"^3.9.0","sinon":"^1.15.4","eslint":"^0.21.0","gulp-mocha":"^2.1.3","gulp-eslint":"^0.15.0","falcor-router":"0.2.4"}},"0.1.4":{"name":"falcor-express","version":"0.1.4","author":{"url":"https://github.com/Netflix/falcor-express/authors.txt","name":"Netflix"},"_id":"falcor-express@0.1.4","maintainers":[{"name":"lrowe","email":"l@lrowe.co.uk"},{"name":"netflix","email":"aliu@netflix.com"},{"name":"satyend","email":"satyend@netflix.com"}],"homepage":"https://github.com/Netflix/falcor-express","bugs":{"url":"https://github.com/Netflix/falcor-express/issues"},"dist":{"shasum":"d2dacf8b23cde3ff62a1375deac774ffc3c13d07","tarball":"https://registry.npmjs.org/falcor-express/-/falcor-express-0.1.4.tgz","integrity":"sha512-NKVYrs2nZDtxqVsZUJ59dhdmzMMZBu4Ue8aD2hFA/HBDupQnyskd9oxnTHWyveY5IHf9QCTb5IjmF87k4ZB7rg==","signatures":[{"sig":"MEUCID3C46hB7cmRQD8batBSk+dghHFEkk6LyD7qmGGzYDE9AiEApmAyuoJVft8W5FopKpXDaVWacKaTKeH+shPratQzXEc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/index.js","_from":".","_shasum":"d2dacf8b23cde3ff62a1375deac774ffc3c13d07","gitHead":"35c202b0e53cb2c045523245d80ff86c13c2113c","scripts":{"lint":"node node_modules/gulp/bin/gulp.js lint","test":"node node_modules/gulp/bin/gulp.js test"},"_npmUser":{"name":"satyend","email":"satyend@netflix.com"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0.html","type":"Apache License, Version 2.0"}],"repository":{"url":"git+https://github.com/Netflix/falcor-express.git","type":"git"},"_npmVersion":"2.15.11","description":"A falcor server for express.","directories":{},"_nodeVersion":"4.6.2","dependencies":{"rx":"~2.3.24","express":"^4.11.1","body-parser":"^1.12.4"},"devDependencies":{"chai":"^3.2.0","gulp":"^3.9.0","sinon":"^1.15.4","eslint":"^0.21.0","gulp-mocha":"^2.1.3","gulp-eslint":"^0.15.0","falcor-router":"0.2.9"},"_npmOperationalInternal":{"tmp":"tmp/falcor-express-0.1.4.tgz_1480616519059_0.9238191773183644","host":"packages-12-west.internal.npmjs.com"}}},"time":{"created":"2015-08-17T13:47:19.201Z","modified":"2025-11-26T16:39:39.853Z","0.1.1":"2015-08-17T13:47:19.201Z","0.1.2":"2015-08-17T13:55:30.376Z","0.1.4":"2016-12-01T18:21:59.297Z"},"bugs":{"url":"https://github.com/Netflix/falcor-express/issues"},"author":{"url":"https://github.com/Netflix/falcor-express/authors.txt","name":"Netflix"},"homepage":"https://github.com/Netflix/falcor-express","repository":{"url":"git+https://github.com/Netflix/falcor-express.git","type":"git"},"description":"A falcor server for express.","maintainers":[{"email":"npm@netflix.com","name":"barb_the_builder"},{"email":"satyend@netflix.com","name":"satyend"}],"readme":"# falcor-express\nServer middleware for falcor-express\n\nWorking usage example of the basic repro in netflix/falcor-express-demo\n\n## Usage\nMinimalistic example\n\n```javascript\nvar FalcorServer = require('falcor-express');\nvar bodyParser = require('body-parser');\nvar express = require('express');\nvar app = express();\n\nvar TestRouter = <your router here>;\n\napp.use(bodyParser.text({ type: 'text/*' }))\napp.use('/model.json', FalcorServer.dataSourceRoute(function(req, res) {\n    return new TestRouter();\n}));\n\napp.use(express.static('.'));\n\nvar server = app.listen(9090, function(err) {\n    if (err) {\n        console.error(err);\n        return;\n    }\n    console.log(\"navigate to http://localhost:9090\")\n});\n\n```\n\nExample of using a static model (for development purposes only)\n\n```javascript\nvar falcor = require('falcor');\nvar FalcorServer = require('falcor-express');\nvar bodyParser = require('body-parser');\nvar express = require('express');\nvar app = express();\n\nvar model = new falcor.Model({\n    cache: {\n        todos: [\n            {\n                name: 'get milk from corner store',\n                done: false\n            },\n            {\n                name: 'withdraw money from ATM',\n                done: true\n            }\n        ]\n    }\n});\n\napp.use(bodyParser.text({ type: 'text/*' }))\napp.use('/model.json', FalcorServer.dataSourceRoute(function(req, res) {\n    return model.asDataSource();\n}));\n\napp.use(express.static('.'));\n\nvar server = app.listen(9090, function(err) {\n    if (err) {\n        console.error(err);\n        return;\n    }\n    console.log(\"navigate to http://localhost:9090\")\n});\n```\n\n## Development\nBefore contributing, please run the linter and the tests to be sure there are no issues.\n```\nnpm run lint\n```\nand\n```\nnpm run test\n```\n","readmeFilename":"README.md","users":{"ovrmrw":true,"gdi2290":true,"brandonccx":true}}