Nicholas Clawson

Results 3 issues of Nicholas Clawson

For example, something like: ```js import ohm from 'ohm'; import { grammar as json } from 'ohm-grammar-json'; const namespace = ohm.namespace({ JSON: json }); const definition = ``` Example {...

enhancement

Currently `onFinished` behaves like this: ``` js const onFinished = require('on-finished'); const app = require('express')(); app.use((req, res, next) => { const result = onFinished(res, () => /* code */); result...

Instead of forcing operations to finish using the `done` callback, you could check if the `work` function returns a promise. This way you could cleanly wrap all sorts of logic...

enhancement