@rmacshane-lw/slugify-lite 4.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.js +1 -4
- package/package.json +1 -1
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { readFileSync } from 'fs';
|
|
2
|
-
const pkg = JSON.parse(readFileSync(new URL('./package.json', import.meta.url)));
|
|
3
|
-
|
|
4
1
|
export const slugify = (text) =>
|
|
5
2
|
text
|
|
6
3
|
.toString()
|
|
@@ -10,4 +7,4 @@ export const slugify = (text) =>
|
|
|
10
7
|
.replace(/\s+/g, '-') // collapse whitespace and replace by -
|
|
11
8
|
.replace(/-+/g, '-'); // collapse dashes
|
|
12
9
|
|
|
13
|
-
export const version = () =>
|
|
10
|
+
export const version = () => '5.0.1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmacshane-lw/slugify-lite",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "A tiny function to slugify strings for URLs - This is a test package for me to test npm version management - Use at your own risk!",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|