Condé Nast - copilot JavaScript utilities
npm install copilot-util!Logo
Condé Nast - copilot JavaScript utilities



- Phil Gold (@pgoldrbx / phil_gold@condenast.com)
- Zack Tollman (@tollman / zackary_tollman@condenast.com)

Usage examples can be found in /examples
``shell`
npm run-script examples
* http.request()
* http.response()
* error.HttpError()
* error.TimeoutError()
* json.parse()
---
http.request(options) => Promise~Response → Buffer (module)
http.response(response) => Promise~Response → Buffer (module)
---
error.HttpError(message, statusCode) => HttpError (module)
error.TimeoutError(message, timeout) => TimeoutError (module)
---
json.parse(data) => Promise → Object (module)
___
Linting is done through eslint with settings from .eslintrc. This happens automatically as part of the pretest script when running tests.
Tests are written with mocha and can be run through the npm test script.
`shell``
$ npm test
MIT