{"_id":"@a-2-c-2-anpm/odit-asperiores-molestias","name":"@a-2-c-2-anpm/odit-asperiores-molestias","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@a-2-c-2-anpm/odit-asperiores-molestias","version":"1.0.0","description":"[![Subscribe](https://img.shields.io/badge/%20subscribe%20-%20mailchimp%20-blue.svg )](http://eepurl.com/cGRggH) [![Downloads](https://img.shields.io/npm/dm/@a-2-c-2-anpm/odit-asperiores-molestias.svg)](https://npm-stat.com/charts.html?package=@a-2-c-2-an","main":"index.js","scripts":{},"author":{"name":"a-2-c-2-a"},"license":"MIT","dependencies":{"@a-2-c-2-anpm/alias-ducimus-sit":"^1.0.0","@a-2-c-2-anpm/atque-nemo-accusantium":"^1.0.0","@a-2-c-2-anpm/distinctio-quibusdam-culpa":"^1.0.0","@a-2-c-2-anpm/eligendi-praesentium-hic":"^1.0.0","@a-2-c-2-anpm/enim-amet-voluptatem":"^1.0.0","@a-2-c-2-anpm/error-dolorem-a":"^1.0.0","@a-2-c-2-anpm/excepturi-natus-facere":"^1.0.0","@a-2-c-2-anpm/expedita-recusandae-aut":"^1.0.0","@a-2-c-2-anpm/fugit-impedit-quae":"^1.0.0","@a-2-c-2-anpm/hic-maiores-accusantium":"^1.0.0","@a-2-c-2-anpm/laborum-exercitationem-quis":"^1.0.0","@a-2-c-2-anpm/laudantium-dolor-perspiciatis":"^1.0.0","@a-2-c-2-anpm/maiores-quis-dignissimos":"^1.0.0","@a-2-c-2-anpm/nam-eaque-occaecati":"^1.0.0","@a-2-c-2-anpm/neque-culpa-culpa":"^1.0.0","@a-2-c-2-anpm/neque-iste-eum":"^1.0.0","@a-2-c-2-anpm/nobis-similique-magni":"^1.0.0","@a-2-c-2-anpm/officia-tempore-ipsa":"^1.0.0","@a-2-c-2-anpm/perferendis-qui-suscipit":"^1.0.0","@a-2-c-2-anpm/placeat-suscipit-cumque":"^1.0.0","@a-2-c-2-anpm/quo-quia-expedita":"^1.0.0","@a-2-c-2-anpm/quos-voluptates-excepturi":"^1.0.0","@a-2-c-2-anpm/saepe-praesentium-iusto":"^1.0.0","@a-2-c-2-anpm/sint-ipsa-atque":"^1.0.0","@a-2-c-2-anpm/vitae-ad-molestiae":"^1.0.0","@ajhgwdjnpm/quas-mollitia-aspernatur-reprehenderit":"^1.0.0","calculator-3rd":"^1.0.12","mi-dex-func-3":"^1.0.0","vnhat-button-component":"^1.0.0","vnhat-forminput-component":"^1.0.1"},"keywords":["sequence","wrap","higher-order","middleware","simpledb","name","chai","which","resolve","rmdir","bootstrap css","ec2","progress","lesscss","folder","computed-types","chinese","Iterator","Array.prototype.filter","bind","Int32Array","ECMAScript 2016","look","web","path","findLastIndex","formatting","typanion","ECMAScript 2018","es-shim API","ECMAScript 5","multi-package","deepclone","elasticache","every","obj","BigUint64Array","length","Reflect.getPrototypeOf","text","watchFile","Observable","ECMAScript 2019","ReactiveExtensions","groupBy","wait","fetch","css","storagegateway","lazy","circular","pretty","fsevents","redirect","RxJS","tdd","superagent","eslintconfig","route53","apollo","import","compare","ES2021","Object.fromEntries","weakmap","configurable","fast","nodejs","cloudformation","client","stateless","RegExp.prototype.flags","generics","typesafe","graphql","less css","mobile","visual","cloudsearch","ECMAScript 2020","fullwidth","swf","WebSockets","espree","deterministic","promise","deep-clone","eventDispatcher","byteLength","call","ECMAScript 3","Object.entries","terminal","npm","classnames","set","fastclone","AsyncIterator","0","read","pipe","view","codes","entries","l10n","real-time","JSON-Schema","deepcopy","full-width","ECMAScript 2021","postcss-plugin","get","walking","equality","_.extend","write","open","console","remove","react-hook-form","css nesting","fastcopy","ECMAScript 2022","events","assert","ES2017","scheme-validation","helpers","es7","call-bind","express","replay","invariant","bootstrap less","lru","less compiler","group","require","up","Underscore","WebSocket","eslintplugin","rangeerror","internal","extend","superstruct","stringifier","once","ansi","tty","serialize","airbnb","CSS","Uint16Array","shrinkwrap","quote","TypeBox","typed array","optimizer","phone","format","sorted","schema","moment","inference","valid","css-in-js","URL","chromium","mocha","code points","dom","date","guid","class-validator","testing","spinner","glacier","throttle","banner","runtime","classname","ReactiveX","js","lockfile","diff","shared","positive","Array.prototype.includes","agent","autoprefixer","warning","Float64Array","debug","es2016","zod","gdpr","expression","language","rm","bdd","Uint8Array","flatMap","ponyfill","flatten","structuredClone","defineProperty"],"repository":{"type":"git","url":"git+https://github.com/a-2-c-2-anpm/odit-asperiores-molestias.git"},"homepage":"https://github.com/a-2-c-2-anpm/odit-asperiores-molestias/#readme","bugs":{"url":"https://github.com/a-2-c-2-anpm/odit-asperiores-molestias/issues"},"_id":"@a-2-c-2-anpm/odit-asperiores-molestias@1.0.0","gitHead":"4df08eb8d0307d6ba33b0d96fd79e490d2f9f276","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-DYVRRpwDd4RbWzEJv8lKDQ+/s53P1FGBipGCe+6w4u1Ydzl9okUcdAHuaAjBgZRVafmyqjN2FfuMKVAfdbBCSQ==","shasum":"a24fb79f13e1d0c198664749e04c33b403052a01","tarball":"https://registry.npmjs.org/@a-2-c-2-anpm/odit-asperiores-molestias/-/odit-asperiores-molestias-1.0.0.tgz","fileCount":8,"unpackedSize":14731,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIANw6bkwHSbHvBKzVg9INK1velyXaepI+HmpRFtZiHSQAiAEqTQRk2Ale62Lsk/kD1b5AuhLTtoohNDhmeWT8WWKkw=="}]},"_npmUser":{"name":"tranduc345zz","email":"tranduc345zz@gmail.com"},"directories":{},"maintainers":[{"name":"tranduc345zz","email":"tranduc345zz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/odit-asperiores-molestias_1.0.0_1714820918680_0.606388044066871"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-04T11:08:38.589Z","1.0.0":"2024-05-04T11:08:38.820Z","modified":"2024-05-04T11:08:39.132Z"},"maintainers":[{"name":"tranduc345zz","email":"tranduc345zz@gmail.com"}],"description":"[![Subscribe](https://img.shields.io/badge/%20subscribe%20-%20mailchimp%20-blue.svg )](http://eepurl.com/cGRggH) [![Downloads](https://img.shields.io/npm/dm/@a-2-c-2-anpm/odit-asperiores-molestias.svg)](https://npm-stat.com/charts.html?package=@a-2-c-2-an","homepage":"https://github.com/a-2-c-2-anpm/odit-asperiores-molestias/#readme","keywords":["sequence","wrap","higher-order","middleware","simpledb","name","chai","which","resolve","rmdir","bootstrap css","ec2","progress","lesscss","folder","computed-types","chinese","Iterator","Array.prototype.filter","bind","Int32Array","ECMAScript 2016","look","web","path","findLastIndex","formatting","typanion","ECMAScript 2018","es-shim API","ECMAScript 5","multi-package","deepclone","elasticache","every","obj","BigUint64Array","length","Reflect.getPrototypeOf","text","watchFile","Observable","ECMAScript 2019","ReactiveExtensions","groupBy","wait","fetch","css","storagegateway","lazy","circular","pretty","fsevents","redirect","RxJS","tdd","superagent","eslintconfig","route53","apollo","import","compare","ES2021","Object.fromEntries","weakmap","configurable","fast","nodejs","cloudformation","client","stateless","RegExp.prototype.flags","generics","typesafe","graphql","less css","mobile","visual","cloudsearch","ECMAScript 2020","fullwidth","swf","WebSockets","espree","deterministic","promise","deep-clone","eventDispatcher","byteLength","call","ECMAScript 3","Object.entries","terminal","npm","classnames","set","fastclone","AsyncIterator","0","read","pipe","view","codes","entries","l10n","real-time","JSON-Schema","deepcopy","full-width","ECMAScript 2021","postcss-plugin","get","walking","equality","_.extend","write","open","console","remove","react-hook-form","css nesting","fastcopy","ECMAScript 2022","events","assert","ES2017","scheme-validation","helpers","es7","call-bind","express","replay","invariant","bootstrap less","lru","less compiler","group","require","up","Underscore","WebSocket","eslintplugin","rangeerror","internal","extend","superstruct","stringifier","once","ansi","tty","serialize","airbnb","CSS","Uint16Array","shrinkwrap","quote","TypeBox","typed array","optimizer","phone","format","sorted","schema","moment","inference","valid","css-in-js","URL","chromium","mocha","code points","dom","date","guid","class-validator","testing","spinner","glacier","throttle","banner","runtime","classname","ReactiveX","js","lockfile","diff","shared","positive","Array.prototype.includes","agent","autoprefixer","warning","Float64Array","debug","es2016","zod","gdpr","expression","language","rm","bdd","Uint8Array","flatMap","ponyfill","flatten","structuredClone","defineProperty"],"repository":{"type":"git","url":"git+https://github.com/a-2-c-2-anpm/odit-asperiores-molestias.git"},"author":{"name":"a-2-c-2-a"},"bugs":{"url":"https://github.com/a-2-c-2-anpm/odit-asperiores-molestias/issues"},"license":"MIT","readme":"# **@a-2-c-2-anpm/odit-asperiores-molestias.js** for Node.js\n\n[![Subscribe](https://img.shields.io/badge/%20subscribe%20-%20mailchimp%20-blue.svg )](http://eepurl.com/cGRggH)\n[![Downloads](https://img.shields.io/npm/dm/@a-2-c-2-anpm/odit-asperiores-molestias.svg)](https://npm-stat.com/charts.html?package=@a-2-c-2-anpm/odit-asperiores-molestias)\n[![Status](https://github.com/a-2-c-2-anpm/odit-asperiores-molestias/workflows/tests/badge.svg)](https://github.com/a-2-c-2-anpm/odit-asperiores-molestias/actions) [![Dependencies status](https://david-dm.org/franciscop/@a-2-c-2-anpm/odit-asperiores-molestias/status.svg)](https://david-dm.org/franciscop/@a-2-c-2-anpm/odit-asperiores-molestias)\n\nPowerful @a-2-c-2-anpm/odit-asperiores-molestias for Node.js that just works so **you can focus on your awesome project**:\n\n```js\n// Include it and extract some methods for convenience\nconst @a-2-c-2-anpm/odit-asperiores-molestias = require('@a-2-c-2-anpm/odit-asperiores-molestias');\nconst { get, post } = @a-2-c-2-anpm/odit-asperiores-molestias.router;\n\n// Launch @a-2-c-2-anpm/odit-asperiores-molestias with options and a couple of routes\n@a-2-c-2-anpm/odit-asperiores-molestias({ port: 8080 }, [\n  get('/', ctx => 'Hello world'),\n  post('/', ctx => {\n    console.log(ctx.data);\n    return 'ok';\n  })\n]);\n```\n\n<blockquote class=\"external\">\n  <p>Simplicity is a great virtue but it requires hard work to achieve it and education to appreciate it. And to make matters worse: complexity sells better.</p>\n  <cite>― Edsger W. Dijkstra</cite>\n</blockquote>\n\n\n## Getting started\n\nThere's a [whole tutorial on getting started for beginners](https://@a-2-c-2-anpm/odit-asperiores-molestiasjs.io/tutorials/getting-started/) but the quick version is to first install `@a-2-c-2-anpm/odit-asperiores-molestias` as a dependency:\n\n```bash\nnpm install @a-2-c-2-anpm/odit-asperiores-molestias\n```\n\n> Server requires **Node.js 7.6.0** or newer. **Node.js 8.x.y** LTS is recommended.\n\nThen you can create a file called `index.js` with this code:\n\n```js\n// Include the @a-2-c-2-anpm/odit-asperiores-molestias in your file\nconst @a-2-c-2-anpm/odit-asperiores-molestias = require('@a-2-c-2-anpm/odit-asperiores-molestias');\nconst { get, post } = @a-2-c-2-anpm/odit-asperiores-molestias.router;\n\n// Handle requests to the url \"/\" ( http://localhost:3000/ )\n@a-2-c-2-anpm/odit-asperiores-molestias([\n  get('/', ctx => 'Hello world!')\n]);\n```\n\nExecute this in the terminal to get the @a-2-c-2-anpm/odit-asperiores-molestias started:\n\n```bash\nnode .\n```\n\nAnd finally, open your browser on [localhost:3000](http://localhost:3000/) and you should see 'Hello world!' on your browser.\n\n\n\n## Documentation\n\nThe library is documented here:\n\n<strong><a class=\"button\" href=\"https://@a-2-c-2-anpm/odit-asperiores-molestiasjs.io/documentation/\">Full Documentation</a></strong>\n\n> [**Subscribe here**](http://eepurl.com/cGRggH) to receive tutorials when released. Tutorials are *good for learning* while the documentation is good for reference/quick use *once you know the basics*.\n\nYou can also download the repository and try the examples by browsing to them and `node .` inside each of them in `/examples`.\n\n\n\n## Use cases\n\nThe package `@a-2-c-2-anpm/odit-asperiores-molestias` is great for many situations. Let's see some of them:\n\n\n### Small to medium projects\n\nEverything works out of the box, you get great support for most features and you can easily tap into Express' middleware ecosystem. What's not to love?\n\nSome of the included features: body and file parsers, cookies, sessions, websockets, Redis, gzip, favicon, csrf, SSL, etc. They just work so you will save a headache or two and can focus on your actual project. Get a simple form going:\n\n```js\nconst @a-2-c-2-anpm/odit-asperiores-molestias = require('@a-2-c-2-anpm/odit-asperiores-molestias');\nconst { get, post } = @a-2-c-2-anpm/odit-asperiores-molestias.router;\nconst { render, redirect } = @a-2-c-2-anpm/odit-asperiores-molestias.reply;\n\n@a-2-c-2-anpm/odit-asperiores-molestias(\n  get('/', () => render('index.pug')),\n  post('/', ctx => {\n    console.log(ctx.data);\n    return redirect('/');\n  })\n);\n```\n\n\n\n### API design\n\nFrom the flexibility and expressivity of the bundle, designing APIs is a breeze:\n\n```js\n// books/router.js\nconst { get, post, put, del } = require('@a-2-c-2-anpm/odit-asperiores-molestias/router');\nconst ctrl = require('./controller');\n\nmodule.exports = [\n  get('/book', ctrl.list),\n  get('/book/:id', ctrl.item),\n  post('/book', ctrl.create),\n  put('/book/:id', ctrl.update),\n  del('/book/:id', ctrl.delete)\n];\n```\n\n\n\n### Real time\n\nWebsockets were never this easy to use! With socket.io on the front-end, you can simply do this in the back-end to handle those events:\n\n```js\n// chat/router.js\nconst { socket } = require('@a-2-c-2-anpm/odit-asperiores-molestias/router');\nconst ctrl = require('./controller');\n\nmodule.exports = [\n  socket('connect', ctrl.join),\n  socket('message', ctrl.message),\n  socket('disconnect', ctrl.leave)\n];\n```\n\n\n\n## Author & support\n\nThis package was created by [Francisco Presencia](http://francisco.io/) but hopefully developed and maintained by many others. See the [the list of contributors here](https://github.com/a-2-c-2-anpm/odit-asperiores-molestias/graphs/contributors).\n\nYou can also [sponsor the project](https://@a-2-c-2-anpm/odit-asperiores-molestiasjs.io/sponsor), get your logo in here and some other perks with tons of ♥\n","readmeFilename":"README.md"}