🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

copilot-util

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

copilot-util

Condé Nast - copilot JavaScript utilities

Source
npmnpm
Version
2.2.0
Version published
Weekly downloads
281
106.62%
Maintainers
1
Weekly downloads
 
Created
Source

Logo

copilot-util

Condé Nast - copilot JavaScript utilities

Codeship Status for CondeNast/copilot-util Code Climate

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)

Core

see: bluebird API (module)

see: immutable API (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

FAQs

Package last updated on 10 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts