a16z-venture-list
v1.0.3
Published
Download the latest companies in [Andreessen Horowitz][a16z]’s portfolios.
Downloads
4
Readme
a16z Venture List
Download the latest companies in Andreessen Horowitz’s portfolios.
Usage
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); }
References
This package exports a type Company
and 4 functions (compare
, fetch
, load
, and save
).
Types
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;
};
Functions
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
.
License
MIT