@torch-ai/crunchbase
v2.2.0
Published
Provides an api client and types for the Crunchbase service
Downloads
15
Keywords
Readme
Crunchbase services
This package provides a standardized layer for accessing crunchbase services along with TypeScript typings.
Current version: v4.0
Usage
Installation
Install the service in your own project
npm install @torch-ai/crunchbase
Initialization
At the top of your application, or in an imported configuration file:
// Import the service definition and environment constants
import Crunchbase from "@torch-ai/crunchbase";
// Create an instance of the service
const crunchbase = new Crunchbase(process.env.API_KEY, {});
export default crunchbase;
Calls
try {
const { entities } = await service.autocomplete.search("Tesla", [
"organizations",
]);
} catch (error) {}
License and agreements
This package is provided through an MIT license. Usage of this package is freely available without restriction.
Crunchbase itself has its own terms of service, account registration, and attribution requirements.
Contributing
Installation
Clone the package from the repository.
npm install
Testing
A local file .env
file will need to be created with credentials for the api:
API_KEY=****
You may run tests in a continuous watch mode:
npm run-script test:watch
Publishing
Open an issue requesting a version to publish.