Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zswang/iplus
Timestamp based GUID
https://github.com/zswang/iplus
guid min
Last synced: about 1 month ago
JSON representation
Timestamp based GUID
- Host: GitHub
- URL: https://github.com/zswang/iplus
- Owner: zswang
- Created: 2017-08-24T12:44:08.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-17T07:59:02.000Z (about 6 years ago)
- Last Synced: 2024-10-08T19:29:12.299Z (about 1 month ago)
- Topics: guid, min
- Language: JavaScript
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
iplus
-----------# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]
Timestamp based GUID
## 使用方法
### 获取新 ID
```js
var guid = iplus.newGuid();
```### 获取新 ID,扩展用法
```js
var guid = iplus.newGuid({
starts: 1504966589797,
hash: true,
upper: true,
});
```## License
MIT © [zswang](http://weibo.com/zswang)
[npm-url]: https://npmjs.org/package/iplus
[npm-image]: https://badge.fury.io/js/iplus.svg
[travis-url]: https://travis-ci.org/zswang/iplus
[travis-image]: https://travis-ci.org/zswang/iplus.svg?branch=master
[coverage-url]: https://coveralls.io/github/zswang/iplus?branch=master
[coverage-image]: https://coveralls.io/repos/zswang/iplus/badge.svg?branch=master&service=github