{"name":"bweb","version":"0.1.2","description":"Web bike-shed","keywords":["http","socket.io","websockets"],"license":"MIT","repository":{"type":"git","url":"git://github.com/bcoin-org/bweb.git"},"homepage":"https://github.com/bcoin-org/bweb","bugs":{"url":"https://github.com/bcoin-org/bweb/issues"},"author":{"name":"Christopher Jeffrey","email":"chjjeffrey@gmail.com"},"main":"./lib/bweb.js","scripts":{"lint":"eslint lib/ test/ || exit 0","test":"mocha --reporter spec test/*-test.js"},"dependencies":{"bsert":"~0.0.3","bsock":"~0.1.1"},"devDependencies":{"eslint":"^5.1.0","mocha":"^5.2.0"},"engines":{"node":">=8.0.0"},"browser":{"./lib/server":"./lib/server-browser.js"},"gitHead":"38df88449567b8f106ee42661f58054091a4fa3e","_id":"bweb@0.1.2","_npmVersion":"6.2.0","_nodeVersion":"10.7.0","_npmUser":{"name":"chjj","email":"chjjeffrey@gmail.com"},"dist":{"integrity":"sha512-vNS62uURu16GpoByzfAUkwIjzgBcDI8GCgUKDmqSQD3eJPr3Lpu1QmU0nESbmC6HvLvWRy4OXdZu+dLobs0uog==","shasum":"24385f9c66ce2532f0358a6063eeade2b6e8ce88","tarball":"http://registry-npm.ywwl.com/bweb/download/bweb-0.1.2.tgz","fileCount":25,"unpackedSize":66764,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbUHT0CRA9TVsSAnZWagAANE0QAIUF/O1uPg7zNSLLA7EE\nhjz6k8KFxAbkHPeYUUERq4iJZPoC9awUsp6M4ytTckJxgI6gFdJvRtZzpLWc\neXUQvddv8KLz5zaG5FDk0RgvvZw2+rzKPUNyLD6x/duFJOUji0VIO7A4CRlR\nYYj47vVEfuByS/x9a6UMGFIcG5jBkKyWh4WzQ7QMZtqZDz8K6+2QFNggpT5I\nLjcOOvAgAQA9C54EGA+mHWJQGf7ypgblnotkbNjBJpAn5CK7BJvzAp2LlAqF\nVq8sXGFm+mUG7W8NcHlogJPNnbwrlLUDwH4T0G1aJjoO4vSFKo8vvd0Jmo0Y\nTGpn0Lhr42ZBHruHabPb3gz/VYNlvh3dl5jR0Y3qgjS8kt+mWK90t5RtChwd\nszq332nhB7J2YVcIg+KOx8MQucD60HyM7LLvy5B+1/HkIOSW7HZSs0vt81iV\nhRQZ3W/S4iI3ikZoGyRipeFE/m4cb/eY0wQT8e1NRxNyX0W/Z/+keeTzE+Vg\nPk71PdHnWg6HBz0vnIYTdcKdRVM3FoOUfuzIN9aLk5mxFPdSC6tJpxDAPY63\nFboLPq7jiYs7iM6RqY9Es++Rl1MSNVYOkWaLbupoXVbbgxCazUpU/OkrK/DL\nyXYHVQVVpe9OJKG9z/teBqhaXwm8WDKFqHKhqFEhLdiAyqFl+Rkn3Ww56xCm\n7nS0\r\n=UeHH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG2sJy8jPiSvbj2mvoHXt8J8IXItUnbXx4zbmdJpo0x4AiEA0FMNoy5NV/RpCqODEc8sc4Ff2cZse84t16PcLoreMjY="}],"size":16273,"noattachment":false,"key":"/bweb/-/bweb-0.1.2.tgz"},"maintainers":[{"name":"chjj","email":"chjjeffrey@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bweb_0.1.2_1531999476188_0.8091557980221127"},"_hasShrinkwrap":false,"readme":"# bweb\n\nA web server.\n\n## Usage\n\n``` js\nconst bweb = require('bweb');\nconst server = bweb.server({\n  port: 8080,\n  sockets: true\n});\n\nserver.on('socket', (socket) => {\n  // A bsock socket\n  socket.fire('hello', 'world');\n});\n\nserver.use(server.bodyParser());\nserver.use(server.cookieParser());\nserver.use(server.jsonRPC());\nserver.use(server.router());\nserver.use('/static', server.fileServer(__dirname));\n\nserver.get('/', async (req, res) => {\n  res.html(200, '<a href=\"/static\">static</a>');\n});\n\nserver.open();\n```\n\n## Contribution and License Agreement\n\nIf you contribute code to this project, you are implicitly allowing your code\nto be distributed under the MIT license. You are also implicitly verifying that\nall code is your original work. `</legalese>`\n\n## License\n\n- Copyright (c) 2017, Christopher Jeffrey (MIT License).\n\nSee LICENSE for more info.\n","publish_time":1531999476259,"_cnpm_publish_time":1531999476259,"dist-tags":{"latest":"0.3.0"}}