@cahil/utils

Various utility functions that might come in handy when building things in JavaScript

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
226May 24, 2021Aug 18, 2018Minified + gzip package size for @cahil/utils in KB

Readme

@cahil/utilsGlobals

@cahil/utils

@cahil/utils

NPM Coverage Status Build Status Greenkeeper Badge GitHub license Maintainability Conventional Commits

Various utilities to assist when developing JS or TS projects, check out the documentation.

Installation

Using npm

npm install @cahil/utils

Or with yarn

yarn add @cahil/utils

Usage

The recommended way to use the library is to import only the functions that you need. For example, to use the camelToTitle function from the transforms library you would use:

// Best 👍
import camelToTitle from '@cahil/utils/transforms/camelToTitle'

However, if you prefer, you can also import from the libraries or root directly.

// Still not too bad
import { camelToTitle } from '@cahil/utils/transforms'

// OR

// I hope you've got some good tree shaking 🌴👎
import { camelToTitle } from '@cahil/utils'

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.