@code.gov/code-gov-api-client
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "@code.gov/code-gov-api-client", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Client for Interacting with Code.gov API", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -1,27 +0,9 @@ | ||
# Alpha version | ||
This code is still being developed. It should not be used in production. | ||
WARNING: This package has moved to @code.gov/api-client. | ||
# code-gov-api-client | ||
Client for Interacting with Code.gov API | ||
View the new package here: | ||
https://www.npmjs.com/package/@code.gov/api-client | ||
# installation | ||
Install the new version with | ||
``` | ||
npm install '@code.gov/code-gov-api-client'; | ||
npm install '@code.gov/api-client'; | ||
``` | ||
# usage | ||
``` | ||
import { CodeGovAPIClient } from "code-gov-api-client"; | ||
// initialize client | ||
let client = new CodeGovAPIClient(); | ||
// get search results for "Space" | ||
let results = client.search("Space"); | ||
// get all repositories by an Agency | ||
let repos = client.getAgencyRepos("SSA"); | ||
// get information about a specific repository | ||
let repo = client.getRepoByID("nasa_dfrc_dthdata_armstrong_time_history_software_utility"); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1575763
10