1.3.2 • Published 6 years ago

eigen-func v1.3.2

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

EIGEN-FUNC

Common JavaScript Functions For EigenTech

Build Status codecov npm

Already Have Methods

  • getAvatar() get user avatar url (eigen use only)
  • getCookie(name) get cookie
  • getRealname() get current user realname (eigen use only)
  • getUsername() get current user username (eigen use only)
  • isAlpha() judge current env is alpha or production (same to isDevMode())(eigen use only)
  • 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 eigen-func --save 
yarn add eigen-func
import eigen from "eigen-func"

eigen.md5("eigen")
eigen.isAlpha()

or

import { md5, isAlpha } from "eigen-func"
md5("eigen")
isAlpha()

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

import md5 from "eigen-func/lib/md5"
md5("eigen")
1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago