{"_id":"@automatique/autoapi-js","_rev":"6-b6917b8ba03ca8f0caf2dfcd85fcd2f9","name":"@automatique/autoapi-js","dist-tags":{"latest":"0.2.5"},"versions":{"0.1.2":{"name":"@automatique/autoapi-js","version":"0.1.2","description":"A tool to automatically generate Javascript/Typescript API servers based on functions","main":"dist/index.js","types":"dist/index.d.ts","dependencies":{"@types/esprima":"^4.0.2","@types/js-beautify":"^1.11.0","@types/node":"^14.0.5","del":"^5.1.0","esprima":"^4.0.1","js-beautify":"^1.11.0","typescript":"^3.9.3"},"devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^7.0.2","@typescript-eslint/eslint-plugin":"^3.0.1","@typescript-eslint/parser":"^3.0.1","chai":"^4.2.0","eslint":"^7.1.0","eslint-config-google":"^0.14.0","eslint-config-prettier":"^6.11.0","mocha":"^7.2.0","ts-node":"^8.10.1"},"scripts":{"prepare":"tsc","pretest":"eslint index.ts src/**/*.ts tests/**/*.ts","test":"mocha --require ts-node/register tests/**/*.ts"},"repository":{"type":"git","url":"git+https://github.com/team-automatique/autoapi-js.git"},"author":{"name":"Team Automatique"},"license":"GPL-3.0","bugs":{"url":"https://github.com/team-automatique/autoapi-js/issues"},"homepage":"https://github.com/team-automatique/autoapi-js#readme","gitHead":"85382aec532d1620e52061ad504ce8368ca025cb","_id":"@automatique/autoapi-js@0.1.2","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-recvtY3WQg5jryfYmqVLpC/xnIyFnw45891PVSq9iiMw+5CRAzW2Uuu4kWqvhYJktXh6GislW3n5mvkfhNZjpA==","shasum":"d19ea89cabde88c275a6fa8206a18dbaa5a39bc5","tarball":"https://registry.npmjs.org/@automatique/autoapi-js/-/autoapi-js-0.1.2.tgz","fileCount":25,"unpackedSize":195683,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0vkhCRA9TVsSAnZWagAAxp8P/38fWGBcQUwxeU2rSt+c\nNRV//D9zZVJHv2Q+NlaFQgdsGNuoAddyRJViI+IJ1xb20cG1msnoknHFZDx9\ntqED8mg6MsylR5XXzbxB1JNryqyIADoV512naD4VVBVWPbfl7etaYipHvK7X\nNRNXOX4LMSNxxHmfBfUOP3XbfjTODb3DPPA7vkuU29ezIZMhZYx21fVT2Bph\nm1X99yxXaVOUSaIsqGv6/q5kgWxHeF8C/++tbJNu+7rOfemXH3DR1PX3PyYA\nmucmBv/qfkTnRE4DpSQhNc6fNL5jwEsEqrIughmo3ghAW/4JFDKssMdyRwWr\nlk8Q3aD3It3SpU0AnMkaDpbdxxx9SytYEkXtQbGCxRjCDjZl39qtWy+KYrIy\nhmjnSkyPMFbwRhDPZlnwMoyk6sRkiIMsTJa1bjA9ihwcFP7FJNtuqi1obF3P\nY1ijHLNgbK7ArzxuEIY+1HNDvMXWfvKuJVOm/qpNr0W32rk0+bhaiywupyJb\nizxTWfhxFxlaNyJMxaazpux/ej7ouIyuml9jdHobtvmE/9KlVljRno7WnssD\nXsMglw0WlT9Ad+JSc3hPGiHycBjfIYgTYgzalTiXqhurVPjdCvnJU8ayMM/A\nJnYfDhRN8f80MNpwfPtXXBkWYy+bgMjiRwxG6u/B4FMvuw+fNhJzKO+D5zZ/\ncPH4\r\n=UlNu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPcjiss1aGLUUNRdWiBR2tV+Pr+gQZ0u56NQegAU7TrQIhAN1zW9G9B0kGvFtdbZMI6Pzsh6WaO6thLevzEKfER4J4"}]},"maintainers":[{"name":"infirmarian","email":"robert@rgeil.net"}],"_npmUser":{"name":"infirmarian","email":"robert@rgeil.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/autoapi-js_0.1.2_1590884641396_0.2602925682450321"},"_hasShrinkwrap":false},"0.2.0":{"name":"@automatique/autoapi-js","version":"0.2.0","description":"A tool to automatically generate Javascript/Typescript API servers based on functions","main":"dist/index.js","types":"dist/index.d.ts","dependencies":{"@types/esprima":"^4.0.2","@types/js-beautify":"^1.11.0","@types/node":"^14.0.5","del":"^5.1.0","esprima":"^4.0.1","js-beautify":"^1.11.0","typescript":"^3.9.3"},"devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^7.0.2","@typescript-eslint/eslint-plugin":"^3.0.1","@typescript-eslint/parser":"^3.0.1","chai":"^4.2.0","eslint":"^7.1.0","eslint-config-google":"^0.14.0","eslint-config-prettier":"^6.11.0","mocha":"^7.2.0","ts-node":"^8.10.1"},"scripts":{"prepare":"tsc","pretest":"eslint index.ts src/**/*.ts tests/**/*.ts","test":"mocha --timeout 3000 --require ts-node/register tests/**/*.ts"},"repository":{"type":"git","url":"git+https://github.com/team-automatique/autoapi-js.git"},"author":{"name":"Team Automatique"},"license":"GPL-3.0","bugs":{"url":"https://github.com/team-automatique/autoapi-js/issues"},"homepage":"https://github.com/team-automatique/autoapi-js#readme","gitHead":"dc9a2487b893ea7b3d4ed977110428583aa09e99","_id":"@automatique/autoapi-js@0.2.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-z6OEiv9yKzqJxR0VHu3IwdGseYxybfkhG0FOWL4RjeFxcRvLwmZ5C5TpApJP+CDyAgJY2bR/DC360UI66c+u5w==","shasum":"74908ced57d789e06f8f94f723056fb3f0f96c4f","tarball":"https://registry.npmjs.org/@automatique/autoapi-js/-/autoapi-js-0.2.0.tgz","fileCount":25,"unpackedSize":179352,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2P0fCRA9TVsSAnZWagAAO+UQAI5wiJULamhwAdUWWBkd\nmG8QSo+boA2UJ0O4gBNQyxCsPSpJzPsWIcsfeP4O/mfFYg9Paza2L357FHoM\nK0eQhhs66gbaPKiLwA0a1Bz0xL03mNq1Jgv3A6Z2yP7stzVVxOiyKFlH8Vf5\nyg7+1niejWre8THxClzImhVoXkSABT/DtY6VtrPjnTy0+HjZ8u+63SG7NVBx\n/dyxeyiJU+j9TCcxd7vGMeRj0DMUe5h5Y7YwN6WktUS9Ah1v7yIFM6bJ7P1/\n/MOB8OYGfmt7am5hH7vub8yKYeNBxNJ/1VqjG9Zq/qT81L9/opw8NJP4LOrh\neevrSpBqSjWesnjKLDDJ2m0hHCR7M4coWJsWRcMrIawRW8cAA6/fSgxbr+ak\nMuqP/TV9PWRsmOs8oXAKLiPOHguUqYMDhGyv6S2sjCnH2DXXiouTxbAq78UP\nAbQSpMmvHaFFbjr6gQ3V7uoTMHxL4V2inS0dFtjfUBRwPvQ5fEql16f+95rd\n1BOe+sD/R+HdCMEeA/MXRK+6WPa3WtzNiV2tjE36RCPtL0uJgzznn2RedwLn\nrwWH8LyHaqDUdOrBrYFUYNer7+SL9VEPbWia/gWRxYW+vaB8LODFT71KCahd\nj0nGWL60Z9jnms9j4qAoDo5ipZM8crNH8e/XaHXkmThuVA2tg8xE58XiEyyi\nRhBI\r\n=DM14\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOQzbyikNbZLm2DOXz6II2lOj98/XlR1+7cudNaIrw6AIhAOa6vQt2c8MPIgPOWoWz1qGgISt0VA0htcQQpQbMmSPa"}]},"maintainers":[{"name":"infirmarian","email":"robert@rgeil.net"}],"_npmUser":{"name":"infirmarian","email":"robert@rgeil.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/autoapi-js_0.2.0_1591278879307_0.09864125356415321"},"_hasShrinkwrap":false},"0.2.2":{"name":"@automatique/autoapi-js","version":"0.2.2","description":"A tool to automatically generate Javascript/Typescript API servers based on functions","main":"dist/index.js","types":"dist/index.d.ts","dependencies":{"@types/js-beautify":"^1.11.0","@types/node":"^14.0.5","del":"^5.1.0","js-beautify":"^1.11.0","typescript":"^3.9.3"},"devDependencies":{"@types/chai":"^4.2.11","@types/esprima":"^4.0.2","@types/mocha":"^7.0.2","@typescript-eslint/eslint-plugin":"^3.0.1","@typescript-eslint/parser":"^3.0.1","chai":"^4.2.0","eslint":"^7.1.0","eslint-config-google":"^0.14.0","eslint-config-prettier":"^6.11.0","esprima":"^4.0.1","mocha":"^7.2.0","ts-node":"^8.10.1"},"scripts":{"prepare":"tsc","pretest":"eslint index.ts src/**/*.ts tests/**/*.ts","test":"mocha --timeout 3000 --require ts-node/register tests/**/*.ts"},"repository":{"type":"git","url":"git+https://github.com/team-automatique/autoapi-js.git"},"author":{"name":"Team Automatique"},"license":"GPL-3.0","bugs":{"url":"https://github.com/team-automatique/autoapi-js/issues"},"homepage":"https://github.com/team-automatique/autoapi-js#readme","gitHead":"a4f5147a59fe64d9696f806ae970b2a0678645c9","_id":"@automatique/autoapi-js@0.2.2","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Pie2Z/OdiXSVmxLKQ7f0rZBG4bdxd1+1aAex4hZLEp269eQ0UPgwTr38iRg3FSxTEsW6kl/Hok+39EKtDVpzdw==","shasum":"8b9ef1eff30e0c4c0f2c5fc15fdef9e3315bb689","tarball":"https://registry.npmjs.org/@automatique/autoapi-js/-/autoapi-js-0.2.2.tgz","fileCount":34,"unpackedSize":217910,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe27eeCRA9TVsSAnZWagAAAUgP/36cqrZiH2MJsbI3redS\nlovn4exlW74rJqSATT+Lx7lrcVpOfcRFyppMIBsNoycYWi+Qh83PD2zby/Mu\nAjHp81u5HIB2mI9F2lQ0XKyOLZCiB15bR7h5PEJLZQb60StbbH22+r/mchj5\nFDnooM8g5IHUW4Ee7HsH5qDnXToBQOu82FvOieWaEphNlAozHwFxUqn60i4U\nE3VIui2UtDOrvtoGNug0+70Q5SmuZA/oJpSxVPfP8rtz9IX5UXxedEQ87B36\nZNY2EDaxwompC0ki8VBXq42+UeKx/FuR+Ilhpn4+4NK0sn284xDJCEAq5t1I\nvf1fetMjf+IaWeynL2H7W/jweBpRW3AliIcJNZa/58rYCTJdfJphy3L9AknS\neg2zKm8Gq56px7YN1Tn7KhwQdcppMq7JdvszfYeTDBxZVZx5INLrP/STAfhd\ngboiqPGzSLhBlmAUPgECbjHCeQkBtQRApyfFF8PunhW059tavODqL92yocwz\n6LwlOioGE7cHoTMnI6ptHVDxYJCGzw99vREFZS8DR23zAAsXd4oq4FSehGfP\n/blntBLvyFIrwuZazGj5GnU/n164HYGAcQ/zM+95Y6zrCo8u0O3JNKMEZVrk\n+6Mxz8vyRENm6B05ExSiluOwVay5AEeQiacq4MzM2I8bmuzHLv4IaReizU82\n15R/\r\n=PQkA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2AIX/M0Z4+sAEIMnp56JwrEszc2jHr2Jcw+6xbEipFgIgEZM/HQPtMcbAx6UbDfcjkqBxKwn7Omv+ybbp8ZlN654="}]},"maintainers":[{"name":"infirmarian","email":"robert@rgeil.net"}],"_npmUser":{"name":"infirmarian","email":"robert@rgeil.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/autoapi-js_0.2.2_1591457694174_0.553450486426363"},"_hasShrinkwrap":false},"0.2.3":{"name":"@automatique/autoapi-js","version":"0.2.3","description":"A tool to automatically generate Javascript/Typescript API servers based on functions","main":"dist/index.js","types":"dist/index.d.ts","dependencies":{"@types/js-beautify":"^1.11.0","@types/node":"^14.0.5","del":"^5.1.0","js-beautify":"^1.11.0","typescript":"^3.9.3"},"devDependencies":{"@types/chai":"^4.2.11","@types/esprima":"^4.0.2","@types/mocha":"^7.0.2","@typescript-eslint/eslint-plugin":"^3.0.1","@typescript-eslint/parser":"^3.0.1","chai":"^4.2.0","eslint":"^7.1.0","eslint-config-google":"^0.14.0","eslint-config-prettier":"^6.11.0","esprima":"^4.0.1","mocha":"^7.2.0","ts-node":"^8.10.1"},"scripts":{"prepare":"tsc","pretest":"eslint index.ts src/**/*.ts tests/**/*.ts","test":"mocha --timeout 3000 --require ts-node/register tests/**/*.ts"},"repository":{"type":"git","url":"git+https://github.com/team-automatique/autoapi-js.git"},"author":{"name":"Team Automatique"},"license":"GPL-3.0","bugs":{"url":"https://github.com/team-automatique/autoapi-js/issues"},"homepage":"https://github.com/team-automatique/autoapi-js#readme","gitHead":"b0d3e4730eb5cf22874c264feb0dbf52e3e68072","_id":"@automatique/autoapi-js@0.2.3","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-MGxGWO3lmW1YiFVyGA4Wo2qVfesd0LuESXA1d/mFc89Pz7zb2TTz2F2M05iI79k0VffDfS32ncIRgYmlg3j9uQ==","shasum":"ccd2efaeb986b951e9b19e4df19ec5ddb6ab6924","tarball":"https://registry.npmjs.org/@automatique/autoapi-js/-/autoapi-js-0.2.3.tgz","fileCount":34,"unpackedSize":218330,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2+coCRA9TVsSAnZWagAA7OkP/0807upCLTUgXP1A5O7d\nQGdpAAQsSbgwUR+qWvEeTCadtd5wG932hEgga9p7Ejw8sNDwVWCfsg43swsC\nCwO36f+GGqubC/qBGoAB2MkAPH7o4Ak0+7VcmmqaVaP5Bdw3tGPNRzsj5yQz\nvOhO37qH3YkrQcNUXSKy8rD13DacHq1H7ABwxqzqxz5sAoiRzr5zDdRibgAN\n/mJ2wA4PTIqy688+H2XWqZiu2dPIMd/+q9ryg494CZSUkKsT2Ul2UZ7yu2Kj\nle47srxvYYFd0OPbIT5gnhwf3iYfY/3BvtWQyQZxc9ZR4Rpxj8Ayo1ZIyK/8\n7ZuMcxJxTqzR4oZZYRdB7I/jgFRiaak1v0AePo3eEqoVrEOSM18w0HWnF1mM\nU6NnWTMfEIcwIAfZKBRuh56ddUgkrZ2RPuNS8Q9fON1VSSS07N6ozRm5RgI+\nD9eH7EEhU0VLQmVxUu5zAoALGStYS2e77TuROmECu73nJPcpDx7AonTjnPNZ\nBBdFaX7r2KwXZgXzTBssUaGO2mrC60fOqr5qrcMAhNt8ceLFU/Jya6V99msL\n55/QcBkWyHh3SE69mVAoJ526N69it+ycdb5cM6ndhDMT9DGAaf7LQ9XFQ9zp\nh5aax47a22V6M0Ju0k59neJ0Y519ki39jVA1puvYERwHdBMA9CMZG9HLMgw9\n/eNt\r\n=xoKw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1OkhoY21Gh72iY5gNLw2BKeBhmu4JGjsja11MzeAUawIgbZg3f4WPpX7JF2E0lJQY6TA+seBXvKAVc1aeCyyvn8I="}]},"maintainers":[{"name":"infirmarian","email":"robert@rgeil.net"}],"_npmUser":{"name":"infirmarian","email":"robert@rgeil.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/autoapi-js_0.2.3_1591469864123_0.9967584552209914"},"_hasShrinkwrap":false},"0.2.4":{"name":"@automatique/autoapi-js","version":"0.2.4","description":"A tool to automatically generate Javascript/Typescript API servers based on functions","main":"dist/index.js","types":"dist/index.d.ts","dependencies":{"@types/js-beautify":"^1.11.0","@types/node":"^14.0.5","del":"^5.1.0","js-beautify":"^1.11.0","typescript":"^3.9.3"},"devDependencies":{"@types/chai":"^4.2.11","@types/esprima":"^4.0.2","@types/mocha":"^7.0.2","@typescript-eslint/eslint-plugin":"^3.0.1","@typescript-eslint/parser":"^3.0.1","chai":"^4.2.0","eslint":"^7.1.0","eslint-config-google":"^0.14.0","eslint-config-prettier":"^6.11.0","esprima":"^4.0.1","mocha":"^7.2.0","ts-node":"^8.10.1"},"scripts":{"prepare":"tsc","pretest":"eslint index.ts src/**/*.ts tests/**/*.ts","test":"mocha --timeout 3000 --require ts-node/register tests/**/*.ts"},"repository":{"type":"git","url":"git+https://github.com/team-automatique/autoapi-js.git"},"author":{"name":"Team Automatique"},"license":"GPL-3.0","bugs":{"url":"https://github.com/team-automatique/autoapi-js/issues"},"homepage":"https://github.com/team-automatique/autoapi-js#readme","gitHead":"b0d3e4730eb5cf22874c264feb0dbf52e3e68072","_id":"@automatique/autoapi-js@0.2.4","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-CCVQ1e2hTr26s2E45yHGfTKkydvWK5glBtZI3KZsRGnrt7wthJQElHPr4tKzQY6ZgyHuQQktxhfgcizp+uKSEA==","shasum":"3cd4d5d7232aacbeae55ba8d401709b4b986307e","tarball":"https://registry.npmjs.org/@automatique/autoapi-js/-/autoapi-js-0.2.4.tgz","fileCount":34,"unpackedSize":218330,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2+frCRA9TVsSAnZWagAALSQP/ikrWhxXv2W2Ui15SOwa\nnp0HDevd7wheTtNwOI+xHckIkajozAEQVLr0VxbAa6Lob0C/gpdDQ495xYD/\ndlwMg7BFi9cEU72eJrOt6/WU9Q0Yje2px5/p3UaowFFoQtPSplOLAjB6pYCr\nJQW3atEaoIB1GcqnmbkrC+/uU/I/yON4oM9IyR/ds2i3/4C29wtHOw7uvotk\n4KvZEMwllQK6tgV2DT76x6+Q29QsVFrZV92V1G9/7kF0TLdgMLN3OU676TPA\nSRK9F5nCprJX/aNQnkp8B7kXM434tfh8wYpQXI4av7cxSVQeClkNHYGyuFvG\nwLubHTv+JHK3ZK6I1hdJ018Lvv8mQ2q6l/WhAmCgM4MsuA/bCc1Ed/lT+OC3\nO6sQO+myHPEyo5RuL2gyCAIYYz/98f4ruDtbZAHAg+4pjSuFuhyBaAKzTPwU\n6+ik0rWa/+gSzpzsILKsNdVZAQENGn3iTpOHURzA4AmbwpxaAESrjHkaYpn5\naIqo/X9ZN51xy0he2ZgQmy8FLyuPOhqCdA3HRzaqSdMz5WRqX/McwAET6Itv\nhU0V2NIpkFtZVD2jUDnKxYEHn4O7dHdO2+G8frDgRfpv7e0HrL3jy3/aWgMd\nu+LyjiyOOywkmDJVLfnQKx7aVp6lFaSowWJV/yxs0XUELe+4QlwOgABM7T6B\nHRH5\r\n=nx94\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDCJAMQJcV+JAN6Ajvx9cqCGiAtwlYp1qEAHG9L4QZGVAiEAzSVwQDWhATeuu52ci5OhotPcVwe8N+/W8HV86h2739Q="}]},"maintainers":[{"name":"infirmarian","email":"robert@rgeil.net"}],"_npmUser":{"name":"infirmarian","email":"robert@rgeil.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/autoapi-js_0.2.4_1591470058469_0.7273684640904481"},"_hasShrinkwrap":false},"0.2.5":{"name":"@automatique/autoapi-js","version":"0.2.5","description":"A tool to automatically generate Javascript/Typescript API servers based on functions","main":"dist/index.js","types":"dist/index.d.ts","dependencies":{"@types/js-beautify":"^1.11.0","@types/node":"^14.0.5","del":"^5.1.0","js-beautify":"^1.11.0","typescript":"^3.9.3"},"devDependencies":{"@types/chai":"^4.2.11","@types/esprima":"^4.0.2","@types/mocha":"^7.0.2","@typescript-eslint/eslint-plugin":"^3.0.1","@typescript-eslint/parser":"^3.0.1","chai":"^4.2.0","eslint":"^7.1.0","eslint-config-google":"^0.14.0","eslint-config-prettier":"^6.11.0","esprima":"^4.0.1","mocha":"^7.2.0","ts-node":"^8.10.1"},"scripts":{"prepare":"tsc","pretest":"eslint index.ts src/**/*.ts tests/**/*.ts","test":"mocha --timeout 3000 --require ts-node/register tests/**/*.ts"},"repository":{"type":"git","url":"git+https://github.com/team-automatique/autoapi-js.git"},"author":{"name":"Team Automatique"},"license":"GPL-3.0","bugs":{"url":"https://github.com/team-automatique/autoapi-js/issues"},"homepage":"https://github.com/team-automatique/autoapi-js#readme","gitHead":"9ffb4d26908715ce3e1dbcf092f9d3edced26d77","_id":"@automatique/autoapi-js@0.2.5","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-EvvX8cwa9+BqJIVYnMip3cfwIRb2YyMN2QjOMvivj/5ogiykPmxT1BlqNP0EGGArL/ZujtP0pUcMOF+19iAutw==","shasum":"1be5422542812ea1ce3b126af408f68b26f51b3a","tarball":"https://registry.npmjs.org/@automatique/autoapi-js/-/autoapi-js-0.2.5.tgz","fileCount":34,"unpackedSize":222662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3UzGCRA9TVsSAnZWagAAqgsQAIcYs0AEVY7ozDhqtUNy\nHxOlQPiIqY+Uc/9XbEyL/SAzxVLtXYwe5c6h7JkaPt6zjjWKooVIpwutLcUQ\nHt2SS/JNJSJvh6szVUlWo2JcfdKDwIieU1oM4qEhOHEb6J1LnRGbiyUji6v0\nU+xaibuHSFKQnzmXd/jUoCa1cvTb15peDdyXdBFq96FHVw+JVVsa1DiQI5Yv\nVO3Bgl8sFMA9GHiMwZQGGPYoLHGGH8izSdRqoM4TIsoRNxBHPi4uhOug49Um\njKRIhUuiFndf0jicnwtodjzP4OBcn6U+9OJklWVUIDs/q1iwJk9tjV+V6NA7\nP7vkI7ppsYLieuhPM/MFzLWZIKzUKztHd5w14pL4RknG/yVbXkFdPkQh+CtH\nDUYbqHIoIIU1b7mk4NaP1buXGRJ34azMhP+i8bc44He9AupJOZoomG3Pqd6j\n7A5+z5gKbgcEmKIQlmBFEwWsb0APpLtSDgn51x/Tz8EyQxxMbMYDwW+QWb00\nGOuBdEWmjJrrg4CGAvttjphMfFzRrzOv11AIpk/w3cS+AfuPnK3MFrcygUhV\nxhNMYcGYBKVs74F5iCeJXgrSL649sEG5VP9TBZtzE/oU29S8yQbzLxWVSy8B\nG8rgMpl3JKOiizvr0RPcOUBaR4UFW07OZ794PpXEdvT5SZzXfTeWw5WVCasF\nGFLn\r\n=v3Si\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCy75HTXG7CPReY7BnpCshIJ+bWuWZIpX1SrbxcC7E/2AIhANegU73zcU9TCpCPhhxZasmoTCCWJYtnTvMcjHyttydL"}]},"maintainers":[{"name":"infirmarian","email":"robert@rgeil.net"}],"_npmUser":{"name":"infirmarian","email":"robert@rgeil.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/autoapi-js_0.2.5_1591561414236_0.9199415274593801"},"_hasShrinkwrap":false}},"time":{"created":"2020-05-31T00:24:01.133Z","0.1.2":"2020-05-31T00:24:01.511Z","modified":"2022-04-04T16:38:27.018Z","0.2.0":"2020-06-04T13:54:39.509Z","0.2.2":"2020-06-06T15:34:54.411Z","0.2.3":"2020-06-06T18:57:44.293Z","0.2.4":"2020-06-06T19:00:58.593Z","0.2.5":"2020-06-07T20:23:34.350Z"},"maintainers":[{"name":"infirmarian","email":"robert@rgeil.net"}],"description":"A tool to automatically generate Javascript/Typescript API servers based on functions","homepage":"https://github.com/team-automatique/autoapi-js#readme","repository":{"type":"git","url":"git+https://github.com/team-automatique/autoapi-js.git"},"author":{"name":"Team Automatique"},"bugs":{"url":"https://github.com/team-automatique/autoapi-js/issues"},"license":"GPL-3.0","readme":"# AutoAPI-JS\n\n### Build TypeScript and JavaScript functions automatically into a REST API\n\n###### Note: it is _HIGHLY_ recommended that you use TypeScript. The typing system using in TypeScript will let you produce a much more reliable and better documented API\n\n### Installing\n\nThis package can be added to an existing Node project via the command\n`npm install @automatique/autoapi-js`\n\n### Usage\n\nAutoAPI-JS currently exports one function, `buildExpress`. The purpose\nof this package is to automatically build REST APIs from simple JavaScript/TypeScript functions. The functions\nthat are turned into APIs are those that are in the `default export`(typescript or javascript) or `module.exports =`(javascript)\nof the main file specified to `buildExpress`\n\n#### Hello Automatique: TypeScript\n\n`index.ts`:\n\n```typescript\nfunction hello(): string {\n  return \"Hello world\";\n}\n\nexport default {\n  hello: hello,\n};\n```\n\nRunning the below buildTSExpress function with the above snippet in `index.ts` will generate an API,\nwith a single path, `/hello` which executes and returns the result of the function `hello()`\n\n```typescript\n// Build an API\nbuildExpress(\n  // Project root\n  \"/some/path/to/a/typescript/project\",\n  // Main file\n  \"index.ts\",\n  // Options\n  { newSource: \"app.ts\", language: \"TypeScript\", port: 5000 }\n);\n```\n\nThe above returns an object with three attributes, \"index\", the text of an index.ts script,\n\"packageJSON\", a JSON object representing a package.json file, and \"tsConfig\",\na valid typescript config JSON object. Additionally, it returns \"routeData\", which provides\na summary of the generated API\n\n#### Hello Automatique: JavaScript\n\n`index.js`\n\n```javascript\nfunction hello() {\n  return \"Hello world\";\n}\nmodule.exports = {\n  hello,\n};\n```\n\n```javascript\n// Build an API\nbuildExpress(\n  // Project root\n  \"/some/path/to/a/typescript/project\",\n  // Main file\n  \"index.js\",\n  // Options\n  { language: \"JavaScript\" }\n);\n```\n\n#### A More Complex Example\n\nAPIs can also be built with nested exports, creating more structured endpoints. For example,\nconsider a **Math** API. We can build hierarchical exports, to export both functions and constants\n\n```typescript\nfunction calculateArea(length: number, height: number) {\n  return length * height;\n}\n\n/**\n * @param {number} n the number to generate a factorial for\n * @return {number} the calculated factorial\n */\n\nfunction factorial(n: number) {\n  if (n === 1) return 1;\n  return n * factorial(n - 1);\n}\nexport default {\n  geometry: {\n    area: calculateArea,\n    volume: (x: number, y: number, z: number) => x * y * z,\n  },\n  factorial,\n  constants: {\n    pi: () => 3.14159,\n    e: () => 2.71828,\n  },\n};\n```\n\nAs in the above, we can fluidly mix externally declared functions, shorthand object notation\nand arrow functions. The above example will generate an API with paths\n\n```\n/geometry/area\n/geometry/volume\n/factorial\n/constants/pi\n/constants/e\n```\n\nAdditionally, any JSDoc will be preserved in the generated API, such as the one for the function factorial above.\n\n#### Optional Arguments\n\nNormally, the generated API will perform a check for the existance of any declared parameters for a function. The exception to\nthis is if an initializer is provided or (typescript) the parameter is marked nullable. For example:\n\n```typescript\nfunction hello(name: string) {\n  return `hello ${name}`;\n}\nfunction goodbye(name?: string) {\n  if (name) return `Goodbye ${name}`;\n  else return \"Goodbye stranger\";\n}\nexport default {\n  hello,\n  goodbye,\n};\n```\n\nIn the generated API, calling /hello will result in a 400 response code, returning {error: \"missing parameter name\"}. However, calling\n/goodbye?name=foobar and /goodbye will both return a 200 response code\n\n### Notes\n\nThere are some changes in the source file that must be made to correctly work\n\n1. URL Paths are case-insensitive, unlike JavaScript/TypeScript identifiers. If you attempt to export 2 functions with the same name, differing by casing (eg foo() and FOO()), undefined behaviour will occur\n\n2. Because of the need to interface with other languages, and work across the network, there are some restrictions on parameter and return types for functions. Return types may not include unions, unless the union can be coerced to a base type. For example, returning type `\"foo\" | \"bar\"` is permitted (and will be coerced to type `string`), but returning type `string | 5` is\n   not permitted. Additionally, promises cannot be parameters, and any return may only have a promise at the top level. For example, a function may return `Promise<string>` but cannot return\n   `{foo: string, prom: Promise<string>}`\n\n### Contributing\n\n`autoapi-js` is an open-source project by Automatique. If you encounter bugs, find problems or just want to contribute features,\nfeel free to either open an issue or fork and make a pull request\n","readmeFilename":"README.md"}