All Projects → micell → micell

micell / micell

Licence: MIT License
A collection of functions for front-end development

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to micell

utils.js
👷 🔧 zero dependencies vanilla JavaScript utils.
Stars: ✭ 14 (-12.5%)
Mutual labels:  url, base64, date, easing
1c http
Подсистема 1С для работы с HTTP
Stars: ✭ 48 (+200%)
Mutual labels:  url, cookie
url-regex-safe
Regular expression matching for URL's. Maintained, safe, and browser-friendly version of url-regex. Resolves CVE-2020-7661 for Node.js servers.
Stars: ✭ 59 (+268.75%)
Mutual labels:  url, regexp
anim8js
The ultimate animation library for javascript - animate everything!
Stars: ✭ 33 (+106.25%)
Mutual labels:  dom, easing
lit-date
Light-weight, faster datetime formatter for modern browsers.
Stars: ✭ 33 (+106.25%)
Mutual labels:  date, format
m4q
Small library for DOM manipulation and animation. This library similar to jQuery, but written more simply.
Stars: ✭ 30 (+87.5%)
Mutual labels:  dom, ajax
uuid
A decentralized favorites and bookmarks based on Git hosting
Stars: ✭ 70 (+337.5%)
Mutual labels:  uuid, collection
Nanoid
A tiny, secure, URL-friendly, unique string ID generator for Rust
Stars: ✭ 188 (+1075%)
Mutual labels:  url, uuid
vue-translated
Internationalization (i18n) and localization (l10n) library for Vue.js v2.
Stars: ✭ 19 (+18.75%)
Mutual labels:  date, format
date-format
A reliable way to format dates and times in Elm.
Stars: ✭ 48 (+200%)
Mutual labels:  date, format
go-qs
A Go port of Rack's query string parser
Stars: ✭ 96 (+500%)
Mutual labels:  url, querystring
http
Aplus Framework HTTP Library
Stars: ✭ 113 (+606.25%)
Mutual labels:  url, cookie
jodaTime
Format and Parse date and time with joda layout
Stars: ✭ 67 (+318.75%)
Mutual labels:  date, format
timelite
String date and time utilities 🕙
Stars: ✭ 17 (+6.25%)
Mutual labels:  date, format
use-route-as-state
Use React Router route and query string as component state
Stars: ✭ 37 (+131.25%)
Mutual labels:  url, querystring
front-end-notes
前端课程学习笔记汇总
Stars: ✭ 57 (+256.25%)
Mutual labels:  dom, ajax
Electrode Csrf Jwt
Stateless Cross-Site Request Forgery (CSRF) protection with JWT
Stars: ✭ 127 (+693.75%)
Mutual labels:  uuid, cookie
postcss-inline-base64
PostCSS plugin used to replace value inside of url function to base64
Stars: ✭ 23 (+43.75%)
Mutual labels:  url, base64
format-date
📆 A small library (around 400 B when gziped & minified) to format JavaScript `Date` object using same tokens as moment.
Stars: ✭ 25 (+56.25%)
Mutual labels:  date, format
JavaScript-Bootcamp
Complete Documentation For JavaScript Bootcamp Course By Osama Elzero.
Stars: ✭ 27 (+68.75%)
Mutual labels:  dom, ajax

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/[email protected]/dist/micell.js"></script>

The ES Modules version:

<script src="https://cdn.jsdelivr.net/npm/[email protected]/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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].