Skip to content

Commit

Permalink
Change package name
Browse files Browse the repository at this point in the history
  • Loading branch information
GoudekettingRM committed Jan 23, 2024
1 parent 8afee4f commit 16eeeee
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 40 deletions.
2 changes: 1 addition & 1 deletion dist/esm/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions dist/index.d.mts

This file was deleted.

7 changes: 0 additions & 7 deletions dist/index.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "parameterjs",
"version": "0.0.1",
"name": "urlizejs",
"version": "1.0.0",
"description": "Convert strings to parameterized strings",
"main": "dist/index.js",
"module": "dist/esm/index.js",
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
@@ -1,6 +1,6 @@
import { CHARACTER_MAP, type CharacterMap } from './characterMap';

type TParameterizeOptions = {
type TUrlizeOptions = {
charCap?: number;
separator?: string;
};
Expand All @@ -23,7 +23,7 @@ class CharNormalizer {
}
}

const parameterize = (str: string, opts?: TParameterizeOptions): string => {
const urlize = (str: string, opts?: TUrlizeOptions): string => {
const options = opts || {};

str = CharNormalizer.normalize(str)
Expand All @@ -35,4 +35,4 @@ const parameterize = (str: string, opts?: TParameterizeOptions): string => {
return str.substring(0, options.charCap);
};

export { parameterize };
export { urlize };

0 comments on commit 16eeeee

Please sign in to comment.