New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

parameterize

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parameterize - npm Package Compare versions

Comparing version

to
1.0.0

.prettierrc

2

package.json

@@ -18,3 +18,3 @@ {

],
"version": "0.1.0",
"version": "1.0.0",
"repository": {

@@ -21,0 +21,0 @@ "type": "git",

@@ -108,2 +108,11 @@ var LATIN_MAP = {

var SLOVAK_MAP = {
'á': 'a', 'ä': 'a', 'č': 'c', 'ď': 'd', 'é': 'e', 'í': 'i', 'ľ': 'l',
'ĺ': 'l', 'ň': 'n', 'ó': 'o', 'ô': 'o', 'ŕ': 'r', 'š': 's', 'ť': 't',
'ú': 'u', 'ý': 'y', 'ž': 'z',
'Á': 'a', 'Ä': 'A', 'Č': 'C', 'Ď': 'D', 'É': 'E', 'Í': 'I', 'Ľ': 'L',
'Ĺ': 'L', 'Ň': 'N', 'Ó': 'O', 'Ô': 'O', 'Ŕ': 'R', 'Š': 'S', 'Ť': 'T',
'Ú': 'U', 'Ý': 'Y', 'Ž': 'Z'
};
var ALL_DOWNCODE_MAPS = [

@@ -124,3 +133,4 @@ LATIN_MAP,

AZERBAIJANI_MAP,
GEORGIAN_MAP
GEORGIAN_MAP,
SLOVAK_MAP
];

@@ -127,0 +137,0 @@

@@ -11,6 +11,19 @@ node-parameterize

Supports
--------------------------------
Turkish, Greek, Russian, Ukranian, Czech, Polish, Latvanian and Latin special chars.
Turkish
Azerbaijani
Serbian
Greek
Georgian
Russian
Ukranian
Czech
Polish
Romanian
Latvanian
Lithuanian
Arabic
Latin special chars

@@ -33,3 +46,16 @@

```javascript
// using optional length limit
parameterize('this is a long text', 10);
// outputs
// this-is-a-l
```
```javascript
// you can change delimiter character
parameterize('this is a long text', 10, '_');
// outputs
// this_is_a_l
```
Using in express.js 3 view files as view helper

@@ -36,0 +62,0 @@ --------------------------------