{"_id":"1api","_rev":"7-7ae7240bf2a54a1d5f433af14fb1da7b","name":"1api","description":"One way to create an api over multiple protocols","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"1api","version":"0.0.1","description":"One way to create an api over multiple protocols","main":"lib/1Api","scripts":{"test":"mocha"},"keywords":[],"author":"","license":"GPL-3.0","dependencies":{"socket.io":"^1.7.3"},"files":["README.md","LICENSE","lib/"],"devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0"},"gitHead":"fabd44b6d1eb70d2941ca7e51e7d531f9699468d","_id":"1api@0.0.1","_shasum":"24bb019969f124b407cdbb8d083758823e5fa11d","_from":".","_npmVersion":"4.2.0","_nodeVersion":"6.9.5","_npmUser":{"name":"dirkdevisser","email":"dirkdevisser@hotmail.com"},"dist":{"shasum":"24bb019969f124b407cdbb8d083758823e5fa11d","tarball":"https://registry.npmjs.org/1api/-/1api-0.0.1.tgz","integrity":"sha512-cLAr3dDrj1fXqR9bI2iDWecmIwZvnRe/6XSpdl70X0OKQRfZj+S8KBJBWR72KG3o+shjBH4/+q1O9JQCQ7qdiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEPjUMXFEdAA3If5D4dsJpCQzfkfFXO5ORfKVMdatsSgAiAvuQZiFPUWeYoMFhVHSZ5Hti8mteR1mn8UtalVUaxQvg=="}]},"maintainers":[{"name":"dirkdevisser","email":"dirkdevisser@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/1api-0.0.1.tgz_1491049823110_0.7372222142294049"},"directories":{}},"0.0.2":{"name":"1api","version":"0.0.2","description":"One way to create an api over multiple protocols","main":"lib/1api.js","scripts":{"test":"mocha"},"keywords":[],"author":{"name":"Dirk de Visser"},"license":"GPL-3.0","dependencies":{"socket.io":"^1.7.3"},"files":["README.md","LICENSE","lib/"],"devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0"},"repository":{"type":"git","url":"git+https://github.com/DirkDeVisser/1api.git"},"homepage":"https://github.com/DirkDeVisser/1api","bugs":{"url":"https://github.com/DirkDeVisser/1api/issues"},"gitHead":"01ecc059c71840897d8c9a9666a027d1726ae1f2","_id":"1api@0.0.2","_shasum":"80d837ada8c14135432be1a6099e579bb818a5bc","_from":".","_npmVersion":"4.2.0","_nodeVersion":"6.9.5","_npmUser":{"name":"dirkdevisser","email":"dirkdevisser@hotmail.com"},"dist":{"shasum":"80d837ada8c14135432be1a6099e579bb818a5bc","tarball":"https://registry.npmjs.org/1api/-/1api-0.0.2.tgz","integrity":"sha512-8QRfAj9thM6HOHDIba4aa5v2C4CS7M1Sww0R5V9K63zjgr7k0ts6SQW1+qhhKZUoDlfkGAAYQ5XTXLFcXju9TA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAKfuVi6XvsouP7/7R1cLv9YCGYCw7GbYUJ6p8rrIWS/AiAg7hJwPm1h6YPLn7wMQfJHwRRJWnEPR+YzqojkQGh7Jw=="}]},"maintainers":[{"name":"dirkdevisser","email":"dirkdevisser@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/1api-0.0.2.tgz_1491051012020_0.5105359621811658"},"directories":{}}},"readme":"# 1api\nOne way to create multiple api servers at once\n\n## Getting Started\n\n1. `npm install --save 1api`\n\n2. Make a basic file called `index.js` with the following code:\n\n``` javascript\n\nconst oneApi = require('1api');\n\n// Only a http server\nconst myApi = new oneApi({http: true});\n\n// Add route\nmyApi.get('/welcome', (req, res) =>\n    {\n        console.log(req.apiMethod); // \"HTTP\" or \"WS\"\n        res.status(200).send(\"Welcome to this module!\");\n    });\n\n// create server and listen on port 3000\nmyApi.createServer(3000);\n\n```\n\n3. Start de server with `node index.js`\n\n4. Open `localhost:3000/welcome` in the browser and you should see: `Welcome to this module!`.\n\n## Running the tests\n\nAll the tests are in the test folder and can be run with `npm test`.\n//TODO: Add a general test with http server and websocket server\n\n\n## Coding style\n\n//TODO: Add coding style\n\n## Built With\n\n* NodeJS (only tested on Node v6.9.5 and should work with all newer versions)\n* Mocha and chai for testing\n\n\n## Contributing\n\nPlease read [CONTRIBUTING.md]() for details on our code of conduct, and the process for submitting pull requests to us.\n//TODO: Create CONTRIBUTING.md\n\n## Versions\n\n#### 0.0.1\n\n* Initial commit\n* Basic http- and websocket-server\n\n## Authors\n\n* **Dirk de Visser** - Main author - [Dirk de Visser](https://github.com/DirkdeVisser)\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details\n","maintainers":[{"email":"dirkdevisser@hotmail.com","name":"dirk-dev"},{"email":"dirkdevisser@hotmail.com","name":"dirkdevisser"}],"time":{"modified":"2022-06-12T14:06:08.258Z","created":"2017-04-01T12:30:25.105Z","0.0.1":"2017-04-01T12:30:25.105Z","0.0.2":"2017-04-01T12:50:13.992Z"},"keywords":[],"license":"GPL-3.0","readmeFilename":"README.md","homepage":"https://github.com/DirkDeVisser/1api","repository":{"type":"git","url":"git+https://github.com/DirkDeVisser/1api.git"},"author":{"name":"Dirk de Visser"},"bugs":{"url":"https://github.com/DirkDeVisser/1api/issues"},"users":{"dirkdevisser":true}}