����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 3.137.163.99 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/app6/node_modules/uid-safe/ |
Upload File : |
# uid-safe [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] [![Node.js Version][node-version-image]][node-version-url] [![Build Status][travis-image]][travis-url] [![Test Coverage][coveralls-image]][coveralls-url] URL and cookie safe UIDs Create cryptographically secure UIDs safe for both cookie and URL usage. This is in contrast to modules such as [rand-token](https://www.npmjs.com/package/rand-token) and [uid2](https://www.npmjs.com/package/uid2) whose UIDs are actually skewed due to the use of `%` and unnecessarily truncate the UID. Use this if you could still use UIDs with `-` and `_` in them. ## Installation ```sh $ npm install uid-safe ``` ## API ```js var uid = require('uid-safe') ``` ### uid(byteLength, callback) Asynchronously create a UID with a specific byte length. Because `base64` encoding is used underneath, this is not the string length. For example, to create a UID of length 24, you want a byte length of 18. ```js uid(18, function (err, string) { if (err) throw err // do something with the string }) ``` ### uid(byteLength) Asynchronously create a UID with a specific byte length and return a `Promise`. **Note**: To use promises in Node.js _prior to 0.12_, promises must be "polyfilled" using `global.Promise = require('bluebird')`. ```js uid(18).then(function (string) { // do something with the string }) ``` ### uid.sync(byteLength) A synchronous version of above. ```js var string = uid.sync(18) ``` ## License [MIT](LICENSE) [npm-image]: https://img.shields.io/npm/v/uid-safe.svg [npm-url]: https://npmjs.org/package/uid-safe [node-version-image]: https://img.shields.io/node/v/uid-safe.svg [node-version-url]: https://nodejs.org/en/download/ [travis-image]: https://img.shields.io/travis/crypto-utils/uid-safe/master.svg [travis-url]: https://travis-ci.org/crypto-utils/uid-safe [coveralls-image]: https://img.shields.io/coveralls/crypto-utils/uid-safe/master.svg [coveralls-url]: https://coveralls.io/r/crypto-utils/uid-safe?branch=master [downloads-image]: https://img.shields.io/npm/dm/uid-safe.svg [downloads-url]: https://npmjs.org/package/uid-safe