A collection of functions for frontend development
npm install micell


!npm bundle size
!NPM

English | 简体中文
A collection of functions for web development.
* Base64 encoding and decoding a string or binary data
* Character range checking
* Cookie manipulation
* Date diff and format
* DOM computing and manipulation
* Easing functions
* Deciding the type of Javascript value
* File path operation
* Querystring parse and stringify
* Common regular expressions
* String manipulation
* UserAgent detection
* Ajax, css, jsonp, random string, uuid and more.
Npm
``sh`
npm i -S micell
Yarn
`sh`
yarn add micell
CDN
If you want use micell with
`
The specific version:
`html`
The ES Modules version:
`html`
The micell also exists in unpkg.
`js
import micell from 'micell'
// Generate a random string
micell.randomString();
// Get a cookie value
micell.cookie.get('name')
`
More functions see the Docs.
You can use the babel-plugin-lodash to bundle
the methods as you needed.
.babelrc
`json``
{
"plugins": [
["lodash", { "id": ["micell"] }]
]
}
See Docs.
* Chrome
* Firefox
* Safari
* Edge
* IE >= 11
* iOS >= 10
* Android >= 5
See Release notes.
If you have a bug or feature request or document improvement about micell, you can open an issue or create a pull request to main branch.
Also, you can read the CONTRIBUTING guide.
MIT
Copyright (c) 2019-preset, Alex Chao