-
``` js
_.forEach(comments,function(comment, key){
console.log(yield commentModel.getAvatar({name: comment.name}))
});
```
No error
``` js
for (var i = 0; i < comments.length; i+…
-
Web Framework
https://koajs.com/
Continuous integration + testing
https://circleci.com/
https://jestjs.io/
-
```javascript
router.get('/mp4/:name', async ctx => {
let file = './video/' + ctx.params.name;
let stat = fs.statSync(file);
let fileSize = stat.size;
let range = ctx.header.range…
-
## Version **2.4.0** of [koa](https://github.com/koajs/koa) was just published.
Branch
Build failing 🚨
Dependency
koa
…
-
1. Postman Version: 4.4.2
2. App (Chrome app or Mac app): Mac Postman App
3. OS details: os x El Captian
I write some api with node, when I visit with my chrome browser at same url, my backend app e…
-
KickStart the project :
- Setup minimal files for a KoaJS API
- Setup eslint-airbnb linter
- Write first route & minimalist test
- Add Dockerfile (see #1 )
- Add .circleci/config.yml…
-
Can you give similar snippets on how to implement.
```javascript
posts.scope('Post', '/:postId', postMiddleware1, postMiddleware2, (post) => {
// get the 'postId' via `ctx.params`
post…
-
There is a new faster TS release of uWS, https://github.com/uNetworking/uWebSockets.js
https://medium.com/@alexhultman/millions-of-active-websockets-with-node-js-7dc575746a01
The new version doe…
jafri updated
5 years ago
-
If koa-session is initialized with external sotage (not cookies), then `passport.deserializeUser` will be never called. As a result method `isAuthenticated` will never work as expected.
-
Hello and thank you all for the work done on this project.
I'm trying to integrate this middleware into a project that already uses [koa-bodyparser](https://github.com/koajs/bodyparser) (required mid…