This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

simi

1.1.0 • Public • Published

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")

Readme

Keywords

Package Sidebar

Install

npm i simi

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

96.9 kB

Total Files

36

Last publish

Collaborators

  • kaijunhe