Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

shortid-for-miniprogram

dylang28MIT2.2.15

Amazingly short non-sequential url-friendly unique id generator.

short, tiny, id, uuid, bitly, shorten, mongoid, shortid, tinyid

readme

shortid

This repository forked for adapting for wechat miniprogram environment, and has been published a npm package in the name of 'shortid-for-miniprogram'.

该工程只为适配微信小程序环境,已发布为 shortid-for-miniprogram 供小程序使用,功能完全与原项目一致。

Install

npm i shortid-for-miniprogram

Usage

Totally same as original repository.

changelog

Change Log

This project adheres to Semantic Versioning.

2.2.15

  • Update REDUCE_TIME to generate smaller ID.

2.2.14

  • Reduce npm package size by clean-publish.

2.2.13

  • Fix browser config for webpack.

2.2.12

  • Fix cluster worker ID for non-Node environments.

2.2.11

  • Fix React Native support.

2.2.10

  • Fix theoretical ID limit length.

2.2.9

  • Fix symbols probability uniformity by using Nano ID (by @shashkovdanil).
  • Improve ID generation perfomance.
  • Fix shortid.isValid with custom alphabet.
  • Improve shortid.isValid perfomance (by @s7b5en).E

2.2.8

  • Clean npm package from unnecessary files.