1.0.3 • Published 3 years ago

a16z-venture-list v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

a16z Venture List

Download the latest companies in Andreessen Horowitz’s portfolios.

Usage

  1. Install the package.
    • npm i a16z-venture-list
    • pnpm add a16z-venture-list
    • yarn add a16z-venture-list
  2. 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 finds Companys in newCompanies that not in oldCompanies
  • fetch(options?: FetchOptions): Promise<Company[]>: download the latest companies in from Andreessen Horowitz. You can filter by type and stage by giving options.
  • load(filePath?: string): Promise<Company[] | null>: load the saved data. The default source is ./latest.json. It returns null if the file does not exist.
  • save(data: Object, filePath?: string): Promise<void>: save data. The default destination is ./latest.json.

License

MIT

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago