coopa
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

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 

Readme

Keywords

none

Package Sidebar

Install

npm i coopa

Weekly Downloads

12

Version

0.2.3

License

MIT

Unpacked Size

211 kB

Total Files

46

Last publish

Collaborators

  • kefniark