
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
This Angular Module allows you to generate a Random id with a custom formatter. CRC code generator added.
This Angular Module allows you to generate a Random id with a custom formatter.
npm install makeid
Import the module into your project under imports
imports: [
BrowserModule,
AppRoutingModule,
MakeIdModule
],
In your component file, import the module in the constructor
private makeId: Makeid
Then call any of the functions, like the eample below
const id = this.makeId.id('000-AA')
const crc = this.makeId.crc()
const uuid = this.makeId.uuid()
console.log(id, crc, uuid)
Here is a sample of a component setup
export class AppComponent implements OnInit {
constructor(
private makeId: Makeid
) {}
ngOnInit() {
const id = this.makeId.id()
const crc = this.makeId.crc()
const uuid = this.makeId.uuid()
console.log(id, crc, uuid)
}
}
To create a random id based on a pattern, with 3 numbers, 3 letters UC, 3 letters LC and 3 numbers including the dashes and brackets do the following
Chars Numbers use 0
Chars Uppercase use A
Chars Lowercase use a
const id = this.makeId.id('000-AAA-(aaa-000)')
To generate a CRC code, use the following function
const id4 = this.makeId.crc()
001212lower or upper) - AHJHasbbnsAHJHasbbns273gshaHGh000-AAA) - 238-BFSFAQs
This Angular Module allows you to generate a Random id with a custom formatter. CRC code generator added.
We found that makeid 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.