@gkiely/utils
TypeScript icon, indicating that this package has built-in type declarations

0.1.61 • Public • Published

User Guide

Small and efficient utility functions, well tested and optimized for bundle size and performance

Methods:

  • delay
  • pick
  • isEqual
  • isObject
  • omit

Development

To run TSDX, use:

npm start

This builds to /dist and runs the project in watch mode so any edits you save inside src causes a rebuild to /dist.

To do a one-off build, use npm run build

To run tests, use npm test-all

To run tests in watch mode, use npm test

Configuration

Code quality is set up for you with prettier, husky, and lint-staged. Adjust the respective fields in package.json accordingly.

Jest

Jest tests are set up to run with npm test

Bundle Analysis

size-limit is set up to calculate the real cost of your library with npm run size and visualize the bundle with npm run analyze.

Setup Files

This is the folder structure we set up for you:

/src
  index.tsx       # EDIT THIS
/test
  blah.test.tsx   # EDIT THIS
.gitignore
package.json
README.md         # EDIT THIS
tsconfig.json

Powered by

https://tsdx.io/

Readme

Keywords

none

Package Sidebar

Install

npm i @gkiely/utils

Weekly Downloads

4

Version

0.1.61

License

MIT

Unpacked Size

41.3 kB

Total Files

12

Last publish

Collaborators

  • gkiely