Condé Nast - copilot JavaScript utilities
- Zack Tollman (@tollmanz / [email protected])
Usage examples can be found in /examples
npm run-script examples
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.
$ npm test
MIT