Socket
Socket
Sign inDemoInstall

lodash-uuid

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash-uuid

A uuid validation and generation mixin for lodash.


Version published
Weekly downloads
1.1K
decreased by-4.72%
Maintainers
1
Weekly downloads
 
Created
Source

lodash-uuid

A simple lodash mixin that supports validation and generation of uuids.

 npm install lodash-uuid

This is a slimmed down copy of lodash-mix that only supports functions specific to uuids.

usage

_.uuid

_.uuid()
// generates an RFC 4122 compliant version 4 uuid.

_.isUuid

_.isUuid('262182b1-f92c-42bd-ab39-8faedb47b4dc')
// produces true|false. Validates any version of uuid.

_.isUuid4

_.isUuid('262182b1-f92c-42bd-ab39-8faedb47b4dc')
// produces true|false. Validates an RFC 4122 compliant version 4 uuid.

tests

Tests run in node and the browser. Browserify and tape must be installed globally.

Execute from the command line

npm install -g tape
tape test/**/*.js

FAQs

Package last updated on 15 Jan 2016

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