New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

crypto-uid

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypto-uid

Cryptographically secure UIDs

  • 0.2.0
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-91.36%
Maintainers
1
Weekly downloads
 
Created
Source

UID Generator

A small package for generating cryptographically secure UIDs in the browser, safe for both cookie and URL usage.

Travis (.org) branch

This package is a mirror of uid-safe, but meant to be used in a browser env. Additionally, it comes bundled with TypeScript typings.

Table of Contents

Installation

You can install this package from NPM:

npm add crypto-uid

Or with Yarn:

yarn add crypto-uid

NOTE: For non ES6 users, you need to make sure that tslib is available.

Usage

Generate a random UID:

import uid from 'crypto-uid';
const id = uid(6);

Browser Support


You can expect this lib to run wherever Web Crypto API is supported.

Contribute


If you wish to contribute, please use the following guidelines:

Keywords

FAQs

Package last updated on 30 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc