
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
NPM package for generating and managing globally unique identifiers (GUIDs)
Package for generating and managing globally unique identifiers (GUIDs) v4 in Typescript.
Lightweight, simple, dependency free, and reliable package.
This package provides a class which can parse and generate a GUID based on the RFC4122. The package also expose methods to manage GUIDs.
The focus of this package is to provide a simple mechanism to generate and manage v4 UUIDs, following this principles:
Simply install it with your favourite package manager:
yarn add guid-ts
npm install guid-ts
import { Guid } from 'guid-ts';
const newGuid = Guid.newGuid(); // => ex: b631e90e-6e7f-488e-88fb-a7c2ef44bb8d
You can use and test the package online on Stackblitz, checkout our example playground: guid-ts-playground.
You can find all the code documentation in https://piraces.github.io/guid-ts/index.html.
The documentation is generated using TypeDoc, and resides in the docs
folder.
The implementation is very simple. It basically generates random numbers to compose a valid v4 UUID, following the specification and a regex to check it.
In order to support all browsers as possible, the implementation checks if the browser has implemented the Crypto API (or mscrypto in the case of IE11), in order to generate the random values, since it is a more reliable source for random values. If the crypto object its not available in runtime, then Math.random() is used as a fallback (which is a less reliable source of random values, but available in almost all browsers).
![]() IE / Edge | ![]() Firefox | ![]() Chrome | ![]() Safari | ![]() iOS Safari | ![]() Samsung | ![]() Opera |
---|---|---|---|---|---|---|
IE6-IE11, Edge | 2-latest | 4-latest | 3.1-latest | 3.2-latest | 4-latest | 10-latest |
FAQs
NPM package for generating and managing globally unique identifiers (GUIDs)
The npm package guid-ts receives a total of 1,305 weekly downloads. As such, guid-ts popularity was classified as popular.
We found that guid-ts 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.