Skip to content

Latest commit

 

History

History

api

@thi.ng/api

npm version npm downloads Mastodon Follow

Note

This is one of 199 standalone projects, maintained as part of the @thi.ng/umbrella monorepo and anti-framework.

🚀 Please help me to work full-time on these projects by sponsoring me on GitHub. Thank you! ❤️

About

Common, generic types, interfaces & mixins.

This package is implicitly used by most other projects in this repository. It defines:

  • Dozens of generic, common interfaces & types
  • Class & method decorators
  • Mixins
  • Typedarray utilities

Status

STABLE - used in production

Search or submit any issues for this package

Installation

yarn add @thi.ng/api

ESM import:

import * as api from "@thi.ng/api";

Browser ESM import:

<script type="module" src="https://esm.run/@thi.ng/api"></script>

JSDelivr documentation

For Node.js REPL:

const api = await import("@thi.ng/api");

Package sizes (brotli'd, pre-treeshake): ESM: 2.41 KB

Dependencies

None

API

Generated API docs

Authors

If this project contributes to an academic publication, please cite it as:

@misc{thing-api,
  title = "@thi.ng/api",
  author = "Karsten Schmidt and others",
  note = "https://thi.ng/api",
  year = 2016
}

License

© 2016 - 2024 Karsten Schmidt // Apache License 2.0