Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
45d8752a71 | |||
d82651c031 |
@ -1,49 +0,0 @@
|
|||||||
# smartunique
|
|
||||||
|
|
||||||
make things unique
|
|
||||||
|
|
||||||
## Availabililty
|
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/smartunique)
|
|
||||||
[](https://GitLab.com/pushrocks/smartunique)
|
|
||||||
[](https://github.com/pushrocks/smartunique)
|
|
||||||
[](https://pushrocks.gitlab.io/smartunique/)
|
|
||||||
|
|
||||||
## Status for master
|
|
||||||
|
|
||||||
[](https://GitLab.com/pushrocks/smartunique/commits/master)
|
|
||||||
[](https://GitLab.com/pushrocks/smartunique/commits/master)
|
|
||||||
[](https://www.npmjs.com/package/smartunique)
|
|
||||||
[](https://david-dm.org/pushrocks/smartunique)
|
|
||||||
[](https://www.bithound.io/github/pushrocks/smartunique/master/dependencies/npm)
|
|
||||||
[](https://www.bithound.io/github/pushrocks/smartunique)
|
|
||||||
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
|
||||||
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
|
||||||
[](http://standardjs.com/)
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
Use TypeScript for best in class instellisense.
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
// We are using TypeScript syntax here to have types in place
|
|
||||||
import * as smartunique from 'smartunique';
|
|
||||||
|
|
||||||
// creates a short mathematically highly unique short string
|
|
||||||
let myShortid = smartunique.shortid();
|
|
||||||
|
|
||||||
// creates a string that is possibly unique world wide
|
|
||||||
let myUuid4 = smartunique.uuid4();
|
|
||||||
|
|
||||||
// creates a oneway repeatable unique id within a certain namespace
|
|
||||||
let myUuid5 = smartunique.uuid('myobscureduser@somedomain.com', smartunique.uuid4());
|
|
||||||
```
|
|
||||||
|
|
||||||
Learn more about UUIDs: knowledgebase.gitzone.com/uuid.html
|
|
||||||
|
|
||||||
For further information read the linked docs at the top of this README.
|
|
||||||
|
|
||||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
|
||||||
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
|
||||||
|
|
||||||
[](https://push.rocks)
|
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartunique",
|
"name": "@pushrocks/smartunique",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartunique",
|
"name": "@pushrocks/smartunique",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "make things unique",
|
"description": "make things unique",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
20
readme.md
20
readme.md
@ -1,4 +1,4 @@
|
|||||||
# smartunique
|
# @pushrocks/smartunique
|
||||||
|
|
||||||
make things unique
|
make things unique
|
||||||
|
|
||||||
@ -25,9 +25,25 @@ make things unique
|
|||||||
|
|
||||||
Use TypeScript for best in class instellisense.
|
Use TypeScript for best in class instellisense.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
// We are using TypeScript syntax here to have types in place
|
||||||
|
import * as smartunique from 'smartunique';
|
||||||
|
|
||||||
|
// creates a short mathematically highly unique short string
|
||||||
|
let myShortid = smartunique.shortid();
|
||||||
|
|
||||||
|
// creates a string that is possibly unique world wide
|
||||||
|
let myUuid4 = smartunique.uuid4();
|
||||||
|
|
||||||
|
// creates a oneway repeatable unique id within a certain namespace
|
||||||
|
let myUuid5 = smartunique.uuid('myobscureduser@somedomain.com', smartunique.uuid4());
|
||||||
|
```
|
||||||
|
|
||||||
|
Learn more about UUIDs: knowledgebase.gitzone.com/uuid.html
|
||||||
|
|
||||||
For further information read the linked docs at the top of this README.
|
For further information read the linked docs at the top of this README.
|
||||||
|
|
||||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||||
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbh/privacy)
|
||||||
|
|
||||||
[](https://push.rocks)
|
[](https://push.rocks)
|
||||||
|
Reference in New Issue
Block a user