Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
uuid-regexp
Advanced tools
RegExp for finding an RFC4122 compliant UUID in a string.
npm install uuid-regexp --save
You can also use Duo, Bower or download the files manually.
var uuid = require('uuid-regexp')
uuid().exec('f47ac10b-58cc-4372-a567-0e02b2c3d479')
//=> [ 'f47ac10b-58cc-4372-a567-0e02b2c3d479', index: 0, input: 'f47ac10b-58cc-4372-a567-0e02b2c3d479' ]
uuid().test('f47ac10b-58cc-4372-a567-0e02b2c3d479')
//=> true
uuid().test('f47ac10b58cc4372a5670e02b2c3d479')
//=> true
uuid().test('F47AC10B58CC4372A5670E02B2C3D479')
//=> true
uuid({ nil: true }).test('00000000-0000-0000-0000-000000000000')
//=> true
uuid().test('00000000-0000-0000-0000-000000000000')
//=> false
var regexp = require('uuid-regexp/regexp')
regexp.versioned.source
//=> '[a-f0-9]{8}-?[a-f0-9]{4}-?[1-5][a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}'
regexp.nil.source
//=> '[0]{8}-?[0]{4}-?[0]{4}-?[0]{4}-?[0]{12}'
uuid(options)
options.nil (Boolean)
Whether to include the nil/empty UUID pattern. (default: false
)(RegExp)
RegExp for matching an RFC4122 compliant UUID strings.SEE: contributing.md
0.1.0 - 2016-01-13
FAQs
RegExp for finding an RFC4122 compliant UUID in a string.
The npm package uuid-regexp receives a total of 214 weekly downloads. As such, uuid-regexp popularity was classified as not popular.
We found that uuid-regexp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.