{"_id":"servify","_rev":"4618154","name":"servify","description":"Microservices the simplest way conceivable.","dist-tags":{"latest":"0.1.12"},"maintainers":[{"name":"maiavictor","email":""}],"time":{"modified":"2026-04-10T18:17:22.000Z","created":"2017-01-18T00:57:51.525Z","0.1.12":"2017-08-03T07:22:11.727Z","0.1.11":"2017-03-04T00:27:29.271Z","0.1.10":"2017-02-14T10:33:39.762Z","0.1.9":"2017-01-31T20:18:19.905Z","0.1.8":"2017-01-23T20:01:07.266Z","0.1.7":"2017-01-23T19:59:40.765Z","0.1.6":"2017-01-23T18:32:20.812Z","0.1.5":"2017-01-19T16:01:37.542Z","0.1.4":"2017-01-18T14:00:15.289Z","0.1.3":"2017-01-18T12:02:54.733Z","0.1.2":"2017-01-18T12:01:52.384Z","0.1.1":"2017-01-18T01:38:46.792Z","0.1.0":"2017-01-18T00:57:51.525Z"},"users":{},"author":{"name":"MaiaVictor"},"repository":{"type":"git","url":"git+https://github.com/maiavictor/servify.git"},"versions":{"0.1.12":{"name":"servify","version":"0.1.12","description":"Microservices the simplest way conceivable.","engines":{"node":">=6"},"main":"servify-node.js","browser":"servify-browser.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"browserify servify.js > dist/servify.bundle.js; ccjs dist/servify.bundle.js > dist/servify.min.js"},"author":{"name":"MaiaVictor"},"license":"MIT","dependencies":{"body-parser":"^1.16.0","express":"^4.14.0","request":"^2.79.0","xhr":"^2.3.3","cors":"^2.8.1"},"repository":{"type":"git","url":"git+https://github.com/maiavictor/servify.git"},"gitHead":"0426028b73087b405556236e94917544c592ef1e","bugs":{"url":"https://github.com/maiavictor/servify/issues"},"homepage":"https://github.com/maiavictor/servify#readme","_id":"servify@0.1.12","_npmVersion":"5.0.3","_nodeVersion":"8.1.3","_npmUser":{"name":"maiavictor","email":"srvictormaia@gmail.com"},"dist":{"shasum":"142ab7bee1f1d033b66d0707086085b17c06db95","size":5934,"noattachment":false,"key":"/servify/-/servify-0.1.12.tgz","tarball":"http://registry.cnpm.dingdandao.com/servify/download/servify-0.1.12.tgz"},"maintainers":[{"name":"maiavictor","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/servify-0.1.12.tgz_1501744931615_0.42591595998965204"},"directories":{},"publish_time":1501744931727,"_hasShrinkwrap":false,"_cnpm_publish_time":1501744931727,"_cnpmcore_publish_time":"2021-12-16T16:05:31.085Z"},"0.1.11":{"name":"servify","version":"0.1.11","description":"Microservices the simplest way conceivable.","main":"servify.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"browserify servify.js > dist/servify.bundle.js; ccjs dist/servify.bundle.js > dist/servify.min.js"},"author":{"name":"MaiaVictor"},"license":"MIT","dependencies":{"body-parser":"^1.16.0","express":"^4.14.0","request":"^2.79.0","xhr":"^2.3.3","cors":"^2.8.1"},"repository":{"type":"git","url":"git+https://github.com/maiavictor/servify.git"},"gitHead":"8bcb5e8cc51e60f3db553b59d664d95ec4046c6f","bugs":{"url":"https://github.com/maiavictor/servify/issues"},"homepage":"https://github.com/maiavictor/servify#readme","_id":"servify@0.1.11","_shasum":"1e396a6a088fa122ef5c3e1d10c955e6c40f370a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"maiavictor","email":"srvictormaia@gmail.com"},"dist":{"shasum":"1e396a6a088fa122ef5c3e1d10c955e6c40f370a","size":5692,"noattachment":false,"key":"/servify/-/servify-0.1.11.tgz","tarball":"http://registry.cnpm.dingdandao.com/servify/download/servify-0.1.11.tgz"},"maintainers":[{"name":"maiavictor","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/servify-0.1.11.tgz_1488587247369_0.27981845661997795"},"directories":{},"publish_time":1488587249271,"_hasShrinkwrap":false,"_cnpm_publish_time":1488587249271,"_cnpmcore_publish_time":"2021-12-16T16:05:31.331Z"},"0.1.10":{"name":"servify","version":"0.1.10","description":"Microservices the simplest way conceivable.","main":"servify.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"browserify servify.js > dist/servify.bundle.js; ccjs dist/servify.bundle.js > dist/servify.min.js"},"author":{"name":"MaiaVictor"},"license":"MIT","dependencies":{"body-parser":"^1.16.0","express":"^4.14.0","request":"^2.79.0","xhr":"^2.3.3"},"repository":{"type":"git","url":"git+https://github.com/maiavictor/servify.git"},"gitHead":"c941fa204b6e546b51ea7028429c62ac10403d94","bugs":{"url":"https://github.com/maiavictor/servify/issues"},"homepage":"https://github.com/maiavictor/servify#readme","_id":"servify@0.1.10","_shasum":"bd78f5b99be18638046f8ce90a993ad471d11148","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"maiavictor","email":"srvictormaia@gmail.com"},"dist":{"shasum":"bd78f5b99be18638046f8ce90a993ad471d11148","size":5678,"noattachment":false,"key":"/servify/-/servify-0.1.10.tgz","tarball":"http://registry.cnpm.dingdandao.com/servify/download/servify-0.1.10.tgz"},"maintainers":[{"name":"maiavictor","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/servify-0.1.10.tgz_1487068418000_0.30204531038179994"},"directories":{},"publish_time":1487068419762,"_hasShrinkwrap":false,"_cnpm_publish_time":1487068419762,"_cnpmcore_publish_time":"2021-12-16T16:05:31.553Z"},"0.1.9":{"name":"servify","version":"0.1.9","description":"Microservices the simplest way conceivable.","main":"servify.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"browserify servify.js > dist/servify.bundle.js; ccjs dist/servify.bundle.js > dist/servify.min.js"},"author":{"name":"MaiaVictor"},"license":"MIT","dependencies":{"body-parser":"^1.16.0","cors":"^2.8.1","express":"^4.14.0","request":"^2.79.0","xhr":"^2.3.3"},"repository":{"type":"git","url":"git+https://github.com/maiavictor/servify.git"},"gitHead":"1e546d9f437b2f70ff62ec4793c4edf7cf18cc80","bugs":{"url":"https://github.com/maiavictor/servify/issues"},"homepage":"https://github.com/maiavictor/servify#readme","_id":"servify@0.1.9","_shasum":"193ad2627003a1bf28f7c89844947bd9c56a0542","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"maiavictor","email":"srvictormaia@gmail.com"},"dist":{"shasum":"193ad2627003a1bf28f7c89844947bd9c56a0542","size":5806,"noattachment":false,"key":"/servify/-/servify-0.1.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/servify/download/servify-0.1.9.tgz"},"maintainers":[{"name":"maiavictor","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/servify-0.1.9.tgz_1485893899686_0.23836683947592974"},"directories":{},"publish_time":1485893899905,"_hasShrinkwrap":false,"_cnpm_publish_time":1485893899905,"_cnpmcore_publish_time":"2021-12-16T16:05:31.815Z"},"0.1.8":{"name":"servify","version":"0.1.8","description":"Microservices the simplest way conceivable.","main":"servify.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"browserify servify.js > dist/servify.bundle.js; ccjs dist/servify.bundle.js > dist/servify.min.js"},"author":{"name":"MaiaVictor"},"license":"MIT","dependencies":{"body-parser":"^1.16.0","express":"^4.14.0","request":"^2.79.0","xhr":"^2.3.3"},"repository":{"type":"git","url":"git+https://github.com/maiavictor/servify.git"},"gitHead":"a76f0dddf5a160173ae242d0b38006f2e1c92259","bugs":{"url":"https://github.com/maiavictor/servify/issues"},"homepage":"https://github.com/maiavictor/servify#readme","_id":"servify@0.1.8","_shasum":"24f3ee581ce02c15de38b6e5a093a080b015c10d","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"maiavictor","email":"srvictormaia@gmail.com"},"dist":{"shasum":"24f3ee581ce02c15de38b6e5a093a080b015c10d","size":5854,"noattachment":false,"key":"/servify/-/servify-0.1.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/servify/download/servify-0.1.8.tgz"},"maintainers":[{"name":"maiavictor","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/servify-0.1.8.tgz_1485201667022_0.8119897341821343"},"directories":{},"publish_time":1485201667266,"_hasShrinkwrap":false,"_cnpm_publish_time":1485201667266,"_cnpmcore_publish_time":"2021-12-16T16:05:32.062Z"},"0.1.7":{"name":"servify","version":"0.1.7","description":"Microservices the simplest way conceivable.","main":"servify.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"browserify servify.js > dist/servify.bundle.js; ccjs dist/servify.bundle.js > dist/servify.min.js"},"author":{"name":"MaiaVictor"},"license":"MIT","dependencies":{"body-parser":"^1.16.0","express":"^4.14.0","request":"^2.79.0","xhr":"^2.3.3"},"repository":{"type":"git","url":"git+https://github.com/maiavictor/servify.git"},"gitHead":"a76f0dddf5a160173ae242d0b38006f2e1c92259","bugs":{"url":"https://github.com/maiavictor/servify/issues"},"homepage":"https://github.com/maiavictor/servify#readme","_id":"servify@0.1.7","_shasum":"eb89e87d14f079bf441c51e05e9ee2cfe18e8a03","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"maiavictor","email":"srvictormaia@gmail.com"},"dist":{"shasum":"eb89e87d14f079bf441c51e05e9ee2cfe18e8a03","size":5851,"noattachment":false,"key":"/servify/-/servify-0.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/servify/download/servify-0.1.7.tgz"},"maintainers":[{"name":"maiavictor","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/servify-0.1.7.tgz_1485201580543_0.3506556339561939"},"directories":{},"publish_time":1485201580765,"_hasShrinkwrap":false,"_cnpm_publish_time":1485201580765,"_cnpmcore_publish_time":"2021-12-16T16:05:32.336Z"},"0.1.6":{"name":"servify","version":"0.1.6","description":"Microservices the simplest way conceivable.","main":"servify.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"browserify servify.js > dist/servify.bundle.js; ccjs dist/servify.bundle.js > dist/servify.min.js"},"author":{"name":"MaiaVictor"},"license":"MIT","dependencies":{"body-parser":"^1.16.0","express":"^4.14.0","request":"^2.79.0","xhr":"^2.3.3"},"repository":{"type":"git","url":"git+https://github.com/maiavictor/servify.git"},"gitHead":"a76f0dddf5a160173ae242d0b38006f2e1c92259","bugs":{"url":"https://github.com/maiavictor/servify/issues"},"homepage":"https://github.com/maiavictor/servify#readme","_id":"servify@0.1.6","_shasum":"d3ecec980cb6a3855800b2caec4b1d19726ab6b7","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"maiavictor","email":"srvictormaia@gmail.com"},"dist":{"shasum":"d3ecec980cb6a3855800b2caec4b1d19726ab6b7","size":5805,"noattachment":false,"key":"/servify/-/servify-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/servify/download/servify-0.1.6.tgz"},"maintainers":[{"name":"maiavictor","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/servify-0.1.6.tgz_1485196340581_0.7350761368870735"},"directories":{},"publish_time":1485196340812,"_hasShrinkwrap":false,"_cnpm_publish_time":1485196340812,"_cnpmcore_publish_time":"2021-12-16T16:05:32.675Z"},"0.1.5":{"name":"servify","version":"0.1.5","description":"Microservices the simplest way conceivable.","main":"servify.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"browserify servify.js > dist/servify.bundle.js; ccjs dist/servify.bundle.js > dist/servify.min.js"},"author":{"name":"MaiaVictor"},"license":"MIT","dependencies":{"express":"^4.14.0","request":"^2.79.0","xhr":"^2.3.3"},"repository":{"type":"git","url":"git+https://github.com/maiavictor/servify.git"},"gitHead":"219ad301be2ceadc2db8a7bc55bc9dfac0c9c4dd","bugs":{"url":"https://github.com/maiavictor/servify/issues"},"homepage":"https://github.com/maiavictor/servify#readme","_id":"servify@0.1.5","_shasum":"2d2e4ff8dc4e5529d662cf7df851b3e756dca231","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"maiavictor","email":"srvictormaia@gmail.com"},"dist":{"shasum":"2d2e4ff8dc4e5529d662cf7df851b3e756dca231","size":5741,"noattachment":false,"key":"/servify/-/servify-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/servify/download/servify-0.1.5.tgz"},"maintainers":[{"name":"maiavictor","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/servify-0.1.5.tgz_1484841697293_0.16123971878550947"},"directories":{},"publish_time":1484841697542,"_hasShrinkwrap":false,"_cnpm_publish_time":1484841697542,"_cnpmcore_publish_time":"2021-12-16T16:05:32.891Z"},"0.1.4":{"name":"servify","version":"0.1.4","description":"Microservices the simplest way conceivable.","main":"servify.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"browserify servify.js > dist/servify.bundle.js; ccjs dist/servify.bundle.js > dist/servify.min.js"},"author":{"name":"MaiaVictor"},"license":"MIT","dependencies":{"express":"^4.14.0","request":"^2.79.0","xhr":"^2.3.3"},"repository":{"type":"git","url":"git+https://github.com/maiavictor/servify.git"},"gitHead":"ad0debcec8bcaccffdaa391dd295263d07eec860","bugs":{"url":"https://github.com/maiavictor/servify/issues"},"homepage":"https://github.com/maiavictor/servify#readme","_id":"servify@0.1.4","_shasum":"b5c099f31cdafa1237e8b6a1c6454b0b52ecbf41","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"maiavictor","email":"srvictormaia@gmail.com"},"dist":{"shasum":"b5c099f31cdafa1237e8b6a1c6454b0b52ecbf41","size":5828,"noattachment":false,"key":"/servify/-/servify-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/servify/download/servify-0.1.4.tgz"},"maintainers":[{"name":"maiavictor","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/servify-0.1.4.tgz_1484748015069_0.022944778203964233"},"directories":{},"publish_time":1484748015289,"_hasShrinkwrap":false,"_cnpm_publish_time":1484748015289,"_cnpmcore_publish_time":"2021-12-16T16:05:33.678Z"},"0.1.3":{"name":"servify","version":"0.1.3","description":"Microservices the simplest way conceivable.","main":"servify.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"browserify servify.js > dist/servify.bundle.js; ccjs dist/servify.bundle.js > dist/servify.min.js"},"author":{"name":"MaiaVictor"},"license":"MIT","dependencies":{"express":"^4.14.0","request":"^2.79.0","xhr":"^2.3.3"},"repository":{"type":"git","url":"git+https://github.com/maiavictor/servify.git"},"gitHead":"04fce1d93b2d2ea861900673b2cae55a4be3a42e","bugs":{"url":"https://github.com/maiavictor/servify/issues"},"homepage":"https://github.com/maiavictor/servify#readme","_id":"servify@0.1.3","_shasum":"959a0dba9c24122003669f2705fa29a964bb24f4","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"maiavictor","email":"srvictormaia@gmail.com"},"dist":{"shasum":"959a0dba9c24122003669f2705fa29a964bb24f4","size":5736,"noattachment":false,"key":"/servify/-/servify-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/servify/download/servify-0.1.3.tgz"},"maintainers":[{"name":"maiavictor","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/servify-0.1.3.tgz_1484740974486_0.3398886180948466"},"directories":{},"publish_time":1484740974733,"_hasShrinkwrap":false,"_cnpm_publish_time":1484740974733,"_cnpmcore_publish_time":"2021-12-16T16:05:33.926Z"},"0.1.2":{"name":"servify","version":"0.1.2","description":"Microservices the simplest way conceivable.","main":"servify.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"browserify servify.js > dist/servify.bundle.js; ccjs dist/servify.bundle.js > dist/servify.min.js"},"author":{"name":"MaiaVictor"},"license":"MIT","dependencies":{"express":"^4.14.0","request":"^2.79.0","xhr":"^2.3.3"},"repository":{"type":"git","url":"git+https://github.com/maiavictor/servify.git"},"gitHead":"b00fc717a93d23eb75ed8a1e3127fa0a852c88c4","bugs":{"url":"https://github.com/maiavictor/servify/issues"},"homepage":"https://github.com/maiavictor/servify#readme","_id":"servify@0.1.2","_shasum":"79d8960f2996256f17eacf61b8f1476e2d50a2c1","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"maiavictor","email":"srvictormaia@gmail.com"},"dist":{"shasum":"79d8960f2996256f17eacf61b8f1476e2d50a2c1","size":5723,"noattachment":false,"key":"/servify/-/servify-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/servify/download/servify-0.1.2.tgz"},"maintainers":[{"name":"maiavictor","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/servify-0.1.2.tgz_1484740910450_0.4418241053353995"},"directories":{},"publish_time":1484740912384,"_hasShrinkwrap":false,"_cnpm_publish_time":1484740912384,"_cnpmcore_publish_time":"2021-12-16T16:05:34.473Z"},"0.1.1":{"name":"servify","version":"0.1.1","description":"Microservices the simplest way conceivable.","main":"servify.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"browserify servify.js > dist/servify.bundle.js; ccjs dist/servify.bundle.js > dist/servify.min.js"},"author":{"name":"MaiaVictor"},"license":"MIT","dependencies":{"express":"^4.14.0","request":"^2.79.0","xhr":"^2.3.3"},"repository":{"type":"git","url":"git+https://github.com/maiavictor/servify.git"},"browser":{"request":"xhr","express":"xhr"},"gitHead":"1eef36c5f9c064b124ac27115c82c8de130c7f8b","bugs":{"url":"https://github.com/maiavictor/servify/issues"},"homepage":"https://github.com/maiavictor/servify#readme","_id":"servify@0.1.1","_shasum":"f57f0d18c1634617e1669ccb8c3a33c397a0de7b","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"maiavictor","email":"srvictormaia@gmail.com"},"dist":{"shasum":"f57f0d18c1634617e1669ccb8c3a33c397a0de7b","size":6784,"noattachment":false,"key":"/servify/-/servify-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/servify/download/servify-0.1.1.tgz"},"maintainers":[{"name":"maiavictor","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/servify-0.1.1.tgz_1484703526528_0.662522456375882"},"directories":{},"publish_time":1484703526792,"_hasShrinkwrap":false,"_cnpm_publish_time":1484703526792,"_cnpmcore_publish_time":"2021-12-16T16:05:34.650Z"},"0.1.0":{"name":"servify","version":"0.1.0","description":"Micro-services in the simplest way conceivable.","main":"servify.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"browserify servify.js > dist/servify.bundle.js; ccjs dist/servify.bundle.js > dist/servify.min.js"},"author":"","license":"MIT","dependencies":{"express":"^4.14.0","request":"^2.79.0","xhr":"^2.3.3"},"browser":{"request":"xhr","express":"xhr"},"gitHead":"55a80cb02067a062a8c5a3565915d60d204dd971","_id":"servify@0.1.0","_shasum":"18997ae56401f47781470768af2d18d8cb7c318a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"maiavictor","email":"srvictormaia@gmail.com"},"dist":{"shasum":"18997ae56401f47781470768af2d18d8cb7c318a","size":6627,"noattachment":false,"key":"/servify/-/servify-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/servify/download/servify-0.1.0.tgz"},"maintainers":[{"name":"maiavictor","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/servify-0.1.0.tgz_1484701071279_0.22147400584071875"},"directories":{},"publish_time":1484701071525,"_hasShrinkwrap":false,"_cnpm_publish_time":1484701071525,"_cnpmcore_publish_time":"2021-12-16T16:05:34.979Z"}},"readme":"## Servify\n\nMicroservices the simplest way conceivable.\n\n## Usage\n\n### Create a microservice:\n\n```javascript\nconst servify = require(\"servify\");\n\n// The service state\nlet count = 0;\n\n// Starts a microservice with 3 API methods\nservify.api(3000, {\n\n    // Squares a number\n    square: (x) => x * x,\n\n    // Concats two arrays\n    concat: (a, b) => a.concat(b),\n\n    // Increments and returns the counter\n    count: () => count++\n\n}).then(() => console.log(\"servified port 3000\"))\n```\n\n### Call a microservice from code:\n\n```javascript\nconst servify = require(\"servify\");\n\n// Builds the API interface from an URL\nconst api = servify.at(\"http://localhost:3000\");\n\n// Calls API methods like normal lib functions\napi.square(2)\n    .then(x => console.log(x));\n\napi.concat([1,2], [3,4])\n    .then(arr => console.log(arr));\n\napi.count()\n    .then(i => console.log(i));\n```\n\n### Call a microservice from the browser / request:\n\n```javascript\nJust access the url followed by a function call:\n\nhttp://localhost:3000/square(2)\nhttp://localhost:3000/concat([1,2], [3,4])\nhttp://localhost:3000/count()\n```\n\n## Support\n\nThis requires ES6 Proxy support, so you need node.js 6 and up. Proxies cannot be polyfilled in earlier versions.\n\n## Why\n\nWhen all you want is to create a microservice, [Express.js](http://expressjs.com) becomes annoyingly verbose. You have to worry about things like serializing/deserializing JSON, chosing how to format query/param inputs, picking a XHR lib on the client and so on. Servify is a ridiculously thin (50 LOC) lib that just standardizes that boring stuff. To create a microservice, all you need is an object of functions specifying your API. To interact with a service, all you need is its URL. You can then call its functions exactly like you would call a normal lib (except it returns a Promise, obviously).\n","_attachments":{},"homepage":"https://github.com/maiavictor/servify#readme","bugs":{"url":"https://github.com/maiavictor/servify/issues"},"license":"MIT"}