
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
The simplest way to get an URL ready string.
const urlifyr = require('urlifyr');
// or import urlifyr from 'urlifyr';
console.log(urlifyr('Hello World!'));
// outputs: hello-world
const urlifyr = require('urlifyr');
// or import urlifyr from 'urlifyr';
const cfg = {
accept: '-',
whiteSpace: '-',
sz: true,
special: '',
lowerCase: true,
trim: true,
}
console.log(urlifyr('Hello World!', cfg));
// outputs: hello-world
| Option | Type | Default | Remark |
|---|---|---|---|
| accept | String | - | Additional characters to be accepted. |
| whiteSpace | String | - | The replacement for white spaces. |
| special | String | EMPTY | The replacement for not accepted characters. |
| lowerCase | Boolean | true | When true forces the output to be lower-case. |
| trim | Boolean | true | When true removes duplicated replacements. |
| sz | Boolean | true | When true replaces the German character Eszet with sz instead of ss. |
$ yarn
$ yarn test
Contributions are welcome. 🙇♂️
This package is made on my spare time. If you find something wrong or think there is something that can be improved, please feel free to submit a pull-requests with your contribution and I will review it and get back to you ASAP.
Thank you! 🙏
FAQs
The simplest way to get an URL ready string.
We found that urlifyr 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.