0.2.3 • Published 4 years ago

coopa v0.2.3

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

Coopa

A really simple and reliable Typescript utility library compatible with Tree Shaking

Build Status Total alerts NPM Version NPM Download Coverage Status License

Originally just for personal use, a bit tired to copy/paste code between project in a helpers.js or to have crazy dependencies for any basic feature.

Export with Rollup in:

  • ESM: the default modern version (compatible with tree shaking)
  • UMD: fallback for old node / tools (both browser & nodeJS)

Usage

To install

npm install coopa

and use

import { uid } from "coopa"

uid() // -> "KCSNPPDr"

Test online with RunKit


Development

Getting Started

Automatically rebuild code and start a local server with samples on localhost:8085

npm run dev

If you want to work on samples, I recommend using in another terminal:

npm run dev:livereload

This command will automatically reload the browser when samples are edited

Commands

npm run help # provide the list of available commands

npm run autofix # try to use both eslint & prettier autofix feature
npm run test # run unit tests, lint, ...
npm run build # build the project in both ESM (default) & UMD (compatibility)
npm run coverage # build coverage in ./coverage/
npm run update # let update project dependencies
0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago