Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@qrvey/id-generator
Advanced tools
![install size](https://packagephobia.com/badge?p=%40qrvey%2Fid-generator) ![coverage](https://img.shields.io/badge/unit_test_coverage-100%25-brightgreen)
The @qrvey/id-generator
package provides a simple utility function to generate unique IDs using the nanoid library, with customizable alphabet and length.
You can install the package using npm or yarn:
npm install @qrvey/id-generator
Or with yarn:
yarn add @qrvey/id-generator
The getId function allows you to generate unique IDs with a customizable alphabet and length.
alphabet
: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzlength
: 21import { getId } from '@qrvey/id-generator';
const id = getId();
console.log(id); // Example output: 'dZ3P1o2xY9B5RgTf8UAcW'
import { getId } from '@qrvey/id-generator';
const customAlphabet = '0123456789abcdef';
const customLength = 10;
const customId = getId(customAlphabet, customLength);
console.log(customId); // Example output: '4a8b7d3e1c'
FAQs
![install size](https://packagephobia.com/badge?p=%40qrvey%2Fid-generator) ![coverage](https://img.shields.io/badge/unit_test_coverage-100%25-brightgreen)
We found that @qrvey/id-generator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.