Have ideas to improve npm?Join in the discussion! »

@daybrush/utilsTypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

@daybrush/utils npm version

utils for Daybush

API Documentation

$ npm i @daybrush/utils
import {TRANSFORM, requestAnimationFrame, splitComma} from "@daybrush/utils";

Consts

  • document
  • OBJECT
  • PROPERTY
  • STRING
  • UNDEFINED
  • FUNCTION
  • ARRAY
  • IS_WINDOW

Cross Browser

  • TRANSFORM
  • FILTER
  • ANIMATION
  • KEYFRAMES
  • getCrossBrowserProperty
  • now
  • requestAnimationFrame

Color

  • RGB
  • RGBA
  • HSL
  • HSLA
  • COLOR_MODELS
  • cutHex
  • hexToRGBA
  • hslToRGBA
  • stringToRGBA
  • toFullHex

DOM

  • $
  • hasClass
  • removeClass
  • addClass
  • fromCSS

Utils

  • splitUnit
  • splitComma
  • splitSpace
  • splitBracket
  • isUndefined
  • isFunction
  • isObject
  • isArray
  • isString
  • camelize
  • decamelize
  • toArray
  • dot

Install

npm i @daybrush/utils

DownloadsWeekly Downloads

17,411

Version

1.4.0

License

MIT

Unpacked Size

274 kB

Total Files

31

Last publish

Collaborators

  • avatar