English | 简体中文
A collection of functions for web development.
Npm
npm i -S micell
Yarn
yarn add micell
CDN
If you want use micell with <script>
directly, you can use jsDelivr.
The latest version:
<script src="https://cdn.jsdelivr.net/npm/micell"></script>
The specific version:
<script src="https://cdn.jsdelivr.net/npm/micell@0.1.0/dist/micell.js"></script>
The ES Modules version:
<script src="https://cdn.jsdelivr.net/npm/micell@0.1.0/dist/micell.esm.browser.js"></script>
The micell also exists in unpkg.
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 bundlethe methods as you needed.
.babelrc
{
"plugins": [
["lodash", { "id": ["micell"] }]
]
}
See Docs.
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