Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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