{"id":22831605,"url":"https://github.com/condenast/copilot-util","last_synced_at":"2025-04-23T19:43:56.681Z","repository":{"id":19215626,"uuid":"22449668","full_name":"CondeNast/copilot-util","owner":"CondeNast","description":"Condé Nast - Copilot JavaScript utilities","archived":false,"fork":false,"pushed_at":"2025-03-24T18:59:17.000Z","size":215,"stargazers_count":8,"open_issues_count":27,"forks_count":3,"subscribers_count":188,"default_branch":"master","last_synced_at":"2025-04-18T14:23:58.361Z","etag":null,"topics":["maintained"],"latest_commit_sha":null,"homepage":"https://www.npmjs.org/package/copilot-util","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CondeNast.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null}},"created_at":"2014-07-31T00:12:36.000Z","updated_at":"2020-06-30T22:27:08.000Z","dependencies_parsed_at":"2024-04-06T01:27:56.201Z","dependency_job_id":"b4d84db0-4525-4264-a7a7-6b543e2892e9","html_url":"https://github.com/CondeNast/copilot-util","commit_stats":{"total_commits":118,"total_committers":10,"mean_commits":11.8,"dds":0.6101694915254237,"last_synced_commit":"3c44c3c9488122c2bacb05ddd89efb324221c792"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CondeNast%2Fcopilot-util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CondeNast%2Fcopilot-util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CondeNast%2Fcopilot-util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CondeNast%2Fcopilot-util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CondeNast","download_url":"https://codeload.github.com/CondeNast/copilot-util/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250501556,"owners_count":21441040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["maintained"],"created_at":"2024-12-12T20:26:43.430Z","updated_at":"2025-04-23T19:43:56.657Z","avatar_url":"https://github.com/CondeNast.png","language":"JavaScript","readme":"![Logo](assets/loris.png)\n\n# copilot-util\n\nCondé Nast - copilot JavaScript utilities\n\n[![Build Status](https://travis-ci.org/CondeNast/copilot-util.svg?branch=master)](https://travis-ci.org/CondeNast/copilot-util)\n[![Code Climate](https://codeclimate.com/github/CondeNast/copilot-util/badges/gpa.svg)](https://codeclimate.com/github/CondeNast/copilot-util)\n[![Coverage Status](https://coveralls.io/repos/github/CondeNast/copilot-util/badge.svg?branch=master)](https://coveralls.io/github/CondeNast/copilot-util?branch=master)\n\n## Maintainers\n\n- Zack Tollman ([@tollmanz](https://github.com/tollmanz) / zackary_tollman@condenast.com)\n\n## Install\n\n[![NPM](https://nodei.co/npm/copilot-util.png?compact=true)](https://nodei.co/npm/copilot-util/)\n\n## Examples\n\nUsage examples can be found in [/examples](examples)\n\n```shell\nnpm run-script examples\n```\n\n# API\n\n  * \u003ca href=\"#http_request\"\u003e\u003ccode\u003e\u003cb\u003ehttp.request()\u003c/b\u003e\u003c/code\u003e\u003c/a\u003e\n  * \u003ca href=\"#http_response\"\u003e\u003ccode\u003e\u003cb\u003ehttp.response()\u003c/b\u003e\u003c/code\u003e\u003c/a\u003e\n  * \u003ca href=\"#error_http\"\u003e\u003ccode\u003e\u003cb\u003eerror.HttpError()\u003c/b\u003e\u003c/code\u003e\u003c/a\u003e\n  * \u003ca href=\"#error_timeout\"\u003e\u003ccode\u003e\u003cb\u003eerror.TimeoutError()\u003c/b\u003e\u003c/code\u003e\u003c/a\u003e\n  * \u003ca href=\"#json_parse\"\u003e\u003ccode\u003e\u003cb\u003ejson.parse()\u003c/b\u003e\u003c/code\u003e\u003c/a\u003e\n\n---\n### HTTP\n\n\u003ca name=\"http_request\"\u003e\u003c/a\u003e\n`http.request(options) =\u003e Promise~Response → Buffer` \u003ccode\u003e([module](lib/http/request))\u003c/code\u003e\n\n\u003ca name=\"http_response\"\u003e\u003c/a\u003e\n`http.response(response) =\u003e Promise~Response → Buffer` \u003ccode\u003e([module](lib/http/response))\u003c/code\u003e\n\n---\n### Error\n\n\u003ca name=\"error_http\"\u003e\u003c/a\u003e\n`error.HttpError(message, statusCode) =\u003e HttpError` \u003ccode\u003e([module](lib/error))\u003c/code\u003e\n\n\u003ca name=\"error_timeout\"\u003e\u003c/a\u003e\n`error.TimeoutError(message, timeout) =\u003e TimeoutError` \u003ccode\u003e([module](lib/error))\u003c/code\u003e\n\n---\n### JSON\n\n\u003ca name=\"json_parse\"\u003e\u003c/a\u003e\n`json.parse(data) =\u003e Promise → Object` \u003ccode\u003e([module](lib/json))\u003c/code\u003e\n\n___\n\n## Developer\n\n### Lint/Tests\n\nLinting is done through [eslint](http://eslint.org) with settings from `.eslintrc`. This happens automatically as part of the `pretest` script when running tests.\n\nTests are written with [mocha](https://npmjs.org/package/mocha) and can be run through the npm test script.\n\n```shell\n$ npm test\n```\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcondenast%2Fcopilot-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcondenast%2Fcopilot-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcondenast%2Fcopilot-util/lists"}