1.1.0 • Published 6 years ago

simi v1.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

simi

common methods collection 4 JavaScript.

Build Status codecov npm

Already Have Methods

  • getCookie(name) get cookie
  • md5(str, bit) md5 string
  • hash(str) hash a string to number
  • uuid(len, radix) generate uuid
  • debounce(func, wait, immediate) function debounce
  • throttle(func, wait, options) function throttle
  • deepClone(object) object deepclone
  • type(variable) judge variable type

How To Use

npm / cnpm install simi --save 
yarn add simi
import simi from "simi"

simi.md5("simi")
simi.isAlpha()

or

import { md5, isAlpha } from "simi"
md5("simi")
isAlpha()

If you only use the few methods in simi, it is recommended to use the following writing method, which will make the packaged JS file smaller

import md5 from "simi/lib/md5"
md5("simi")
1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago