Skip to content

maoosi/otskit

Repository files navigation

otskit 🪛

Opinionated collection of TypeScript utility functions.

  • Strictly typed
  • No external dependencies
  • Fully tested — drop in and bundle what you need

✱ Not a published package — just a bunch of personal utils you’re welcome to copy into your codebase.

Installation

Copy a specific module into your project using degit:

npx degit maoosi/otskit/src/string.ts otskit/string.ts

Or clone the full source:

npx degit maoosi/otskit/src otskit

Replace the destination folder as needed.

Module Dependencies

Some modules depend on others. If copying individually, include their dependencies:

  • array.ts → depends on: is.ts, object.ts
  • object.ts → depends on: is.ts

Relative imports (e.g. ./is) require keeping the folder structure intact.

Usage

import { [functionName] } from 'otskit/[module]'

Documentation

See Documentation for a full list of modules and functions with examples. Auto-generated with TypeDoc.

Inspirations

Some utilities are inspired by or adapted from:

License

MIT

About

Opinionated collection of TypeScript utility functions.

Topics

Resources

License

Stars

Watchers

Forks