Download the latest companies in Andreessen Horowitz’s portfolios.
-
Install the package.
npm i a16z-venture-list
pnpm add a16z-venture-list
yarn add a16z-venture-list
-
Import and use.
import { fetch } from "a16z-venture-list"; async function myGreatWork() { const companies = await fetch(); console.log(companies); }
This package exports a type Company
and 4 functions (compare
, fetch
, load
, and save
).
export type Company = {
type: string | null;
stage: string | null;
url: string | null;
hostname: string | null;
subcategory: string | null;
logo: string | null;
logos: { url: string; width: number }[];
};
export type FetchOptions = {
type?: string;
stage?: string;
};
-
compare(oldCompanies: Company[], newCompanies: Company[]): Company[]
: a pure function that findsCompany
s innewCompanies
that not inoldCompanies
-
fetch(options?: FetchOptions): Promise<Company[]>
: download the latest companies in from Andreessen Horowitz. You can filter bytype
andstage
by giving options. -
load(filePath?: string): Promise<Company[] | null>
: load the saved data. The default source is./latest.json
. It returnsnull
if the file does not exist. -
save(data: Object, filePath?: string): Promise<void>
: save data. The default destination is./latest.json
.
MIT