@buxlabs/utils

2.3.4 • Public • Published

Utils

Codeship

A set of utility methods reused exported as a UMD module. Methods can also be imported directly.

Installation

npm install @buxlabs/utils

Usage

cjs

const { flatten } = require('@buxlabs/utils/object');
flatten({ hello: { world: '1234' } }); // { 'hello.world': '1234' }

es

import { flatten } from '@buxlabs/utils/object'
flatten({ hello: { world: '1234' } }); // { 'hello.world': '1234' }

Methods

array

flatten

object

isObject

isNull

isArray

isRegExp

isFunction

isArguments

isString

isNumber

isDate

isUndefined

extend

flatten

unflatten

rename

dig

pat

string

pad

whitespaceless

dasherize

constantize

trim

uppercase

lowercase

underscore

reverse

capitalize

unescape

lowerfirst

humanize

titleize

classify

pluralize

singularize

swapcase

camelize

truncate

date

toISOString

json

prettify

math

abs

acos

acosh

asin

asinh

atan

atan2

atanh

cbrt

ceil

cos

cosh

exp

floor

log

max

min

pow

random

round

sin

sinh

sqrt

tan

tanh

trunc

Development

To see available commands run:

npm run

Lint:

npm run lint

Test:

npm test

Coverage:

npm run coverage

Build:

npm run build

Readme

Keywords

none

Package Sidebar

Install

npm i @buxlabs/utils

Weekly Downloads

199

Version

2.3.4

License

MIT

Unpacked Size

32.8 kB

Total Files

13

Last publish

Collaborators

  • buxlabs-dev
  • emilos