copilot-util

4.0.0 • Public • Published

Logo

copilot-util

Condé Nast - copilot JavaScript utilities

Build Status Code Climate Coverage Status

Maintainers

Install

NPM

Examples

Usage examples can be found in /examples

npm run-script examples

API


HTTP

http.request(options) => Promise~Response → Buffer (module)

http.response(response) => Promise~Response → Buffer (module)


Error

error.HttpError(message, statusCode) => HttpError (module)

error.TimeoutError(message, timeout) => TimeoutError (module)


JSON

json.parse(data) => Promise → Object (module)


Developer

Lint/Tests

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

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i copilot-util

Weekly Downloads

1,016

Version

4.0.0

License

MIT

Unpacked Size

20.3 kB

Total Files

31

Last publish

Collaborators

  • paulfryzel
  • pgoldrbx
  • tollmanz