|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
388 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | Generate a unique random string.
|
|---|
| 3 |
|
|---|
| 4 | @returns A 32 character unique string. Matches the length of MD5, which is [unique enough](https://stackoverflow.com/a/2444336/64949) for non-crypto purposes.
|
|---|
| 5 |
|
|---|
| 6 | @example
|
|---|
| 7 | ```
|
|---|
| 8 | import uniqueString = require('unique-string');
|
|---|
| 9 |
|
|---|
| 10 | uniqueString();
|
|---|
| 11 | //=> 'b4de2a49c8ffa3fbee04446f045483b2'
|
|---|
| 12 | ```
|
|---|
| 13 | */
|
|---|
| 14 | declare function uniqueString(): string;
|
|---|
| 15 |
|
|---|
| 16 | export = uniqueString;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.