0.15.2 • Published 1 year ago

micell v0.15.2

Weekly downloads
83
License
MIT
Repository
github
Last release
1 year ago

micell

Build Status codecov npm npm bundle size NPM Netlify Status

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.

Install

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.15.0/dist/micell.js"></script>

The ES Modules version:

<script src="https://cdn.jsdelivr.net/npm/micell@0.15.0/dist/micell.esm.browser.js"></script>

The micell also exists in unpkg.

Usage

import micell from 'micell'

// Generate a random string
micell.randomString();

// Get a cookie value
micell.cookie.get('name')

More functions see the Docs.

Reduce the bundle size

You can use the babel-plugin-lodash to bundle the methods as you needed.

.babelrc

{
  "plugins": [
    ["lodash", { "id": ["micell"] }]
  ]
}

Docs

See Docs.

Compatibility

  • Chrome
  • Firefox
  • Safari
  • Edge
  • IE >= 11
  • iOS >= 10
  • Android >= 5

Changelog

See Release notes.

Contributing

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.

License

MIT

Copyright (c) 2019-preset, Alex Chao

0.15.0

2 years ago

0.15.1

2 years ago

0.15.2

1 year ago

0.14.0

2 years ago

0.13.1

2 years ago

0.13.2

2 years ago

0.13.3

2 years ago

0.13.0

3 years ago

0.12.0

3 years ago

0.11.0

3 years ago

0.10.0

3 years ago

0.9.0

3 years ago

0.8.0

3 years ago

0.7.0

4 years ago

0.6.2

4 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago