# seo-friendly-urls

> The "seo-friendly-urls" package is a utility that helps convert strings to SEO-friendly URLs by removing special characters and stop words.

Latest version **1.0.0** (published 2023-06-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install seo-friendly-urls
pnpm add seo-friendly-urls
yarn add seo-friendly-urls
bun add seo-friendly-urls
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-06-19 |
| First published | 2023-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Brandon Himpfen |
| Maintainers | brandonhimpfen |
| Keywords | seo, urls, links, url, link |

## Links

- npm: https://www.npmjs.com/package/seo-friendly-urls
- Repository: https://github.com/brandonhimpfen/seo-friendly-urls
- Homepage: https://github.com/brandonhimpfen/seo-friendly-urls#readme
- Issues: https://github.com/brandonhimpfen/seo-friendly-urls/issues
- npm.io page: https://npm.io/package/seo-friendly-urls

## Dependencies (1)

- [slugify](https://npm.io/package/slugify.md) ^1.6.6

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2023-06-19

## README

# seo-friendly-urls

The "seo-friendly-urls" package is a utility that helps convert strings to SEO-friendly URLs by removing special characters and stop words.

## Installation

You can install the package using npm:

```
npm install seo-friendly-urls
```

## Usage

To use the "seo-friendly-urls" package, require it in your JavaScript file:

```
const seoFriendlyUrls = require('seo-friendly-urls');

const input = 'This is a test string!';
const output = seoFriendlyUrls(input);
console.log(output);
// Output: "this-is-test-string"
```

The main function provided by the package is `seoFriendlyUrls`. It takes an input string and returns a SEO-friendly URL.

## How it works

The `seoFriendlyUrls` function performs the following transformations on the input string:

* **Removes special characters**: Special characters such as symbols and punctuation marks are removed from the string.
* **Removes stop words**: Common stop words, such as articles and conjunctions, are removed from the string.
* **Converts spaces to hyphens**: Any remaining spaces in the string are replaced with hyphens (-).
* **Converts to lowercase**: The resulting string is converted to lowercase.

By applying these transformations, the package generates SEO-friendly URLs that are cleaner and more digestable.

---
_Source: https://npm.io/package/seo-friendly-urls · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
