@stacksjs/strings 0.51.0 → 0.52.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 CHANGED
@@ -18,19 +18,20 @@ Now, you can use it in your project:
18
18
  ```js
19
19
  import {
20
20
  // pluralize
21
+ isPlural, isSingular, singular, plural,
21
22
  addIrregularRule, addPluralRule, addSingularRule, addUncountableRule,
22
23
 
23
24
  // case
24
- camelCase, capitalCase, constantCase, dotCase,
25
- headerCase, isPlural, isSingular, kebabCase, noCase, paramCase, pascalCase,
26
- pathCase, plural, sentenceCase, singular, snakeCase,
25
+ camelCase, capitalCase, constantCase, dotCase
26
+ headerCase, kebabCase, noCase, paramCase, pascalCase,
27
+ pathCase, sentenceCase , snakeCase, titleCase
27
28
 
28
29
  // validation
29
30
  isEmail, isStrongPassword, isAlphanumeric, validateUsername, isURL, isMobilePhone, isAlpha, isPostalCode, isDate, isNumeric, isBoolean, isHexColor, isHexadecimal, isBase64, isUUID, isJSON, isCreditCard, isISBN, isIP, isIPRange, isMACAddress, isLatLong, isLatitude, isLongitude, isCurrency, isDataURI, isMimeType, isJWT, isMongoId, isAscii, isBase32, isByteLength, isFQDN, isFullWidth, isHalfWidth, isHash, isHSL, isIBAN, isIdentityCard, isISIN, isISO8601, isISRC, isISSN, isISO31661Alpha2, isISO31661Alpha3
30
31
  } from '@stacksjs/strings'
31
32
 
32
- console.log(camelCase('hello world')) // helloWorld
33
- console.log(plural('dog')) // dogs
33
+ console.log(camelCase('hello world')) //=> "helloWorld"
34
+ console.log(plural('dog')) //=> "dogs"
34
35
  ```
35
36
 
36
37
  To view the full documentation, please visit [https://stacksjs.dev/strings](https://stacksjs.dev/strings).
@@ -45,7 +46,7 @@ pnpm test
45
46
 
46
47
  Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
47
48
 
48
- ## 💪🏼 Contributing
49
+ ## 🚜 Contributing
49
50
 
50
51
  Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
51
52
 
package/dist/index.d.ts CHANGED
@@ -1,23 +1,44 @@
1
1
  export { camelCase, capitalCase, constantCase, dotCase, headerCase, paramCase as kebabCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase } from 'change-case';
2
- export { addIrregularRule, addPluralRule, addSingularRule, addUncountableRule, isPlural, isSingular, plural, singular } from 'pluralize';
3
- import { HashAlgorithm } from '@stacksjs/types';
2
+ export { titleCase } from 'title-case';
3
+ import pluralize from 'pluralize';
4
4
 
5
+ interface SlugOptions {
6
+ replacement?: string;
7
+ remove?: RegExp;
8
+ lower?: boolean;
9
+ strict?: boolean;
10
+ locale?: string;
11
+ trim?: boolean;
12
+ }
5
13
  /**
6
14
  * Replace backslash to slash
7
15
  *
8
16
  * @category String
17
+ * @example
18
+ * ```
19
+ * slash('C:\\Users\\Chris') => 'C:/Users/Chris'
20
+ * ```
9
21
  */
10
22
  declare function slash(str: string): string;
11
23
  /**
12
24
  * Ensure prefix of a string
13
25
  *
14
26
  * @category String
27
+ * @example
28
+ * ```
29
+ * ensurePrefix('https://', 'google.com') => 'https://google.com'
30
+ * ensurePrefix('https://', 'http://google.com') => 'https://google.com'
15
31
  */
16
32
  declare function ensurePrefix(prefix: string, str: string): string;
17
33
  /**
18
34
  * Ensure suffix of a string
19
35
  *
20
36
  * @category String
37
+ * @example
38
+ * ```
39
+ * ensureSuffix('.js', 'index') => 'index.js'
40
+ * ensureSuffix('.js', 'index.js') => 'index.js'
41
+ * ```
21
42
  */
22
43
  declare function ensureSuffix(suffix: string, str: string): string;
23
44
  /**
@@ -26,8 +47,7 @@ declare function ensureSuffix(suffix: string, str: string): string;
26
47
  * @category String
27
48
  * @example
28
49
  * ```
29
- * const result = template(
30
- * 'Hello {0}! My name is {1}.',
50
+ * const result = template('Hello {0}! My name is {1}.',
31
51
  * 'Buddy',
32
52
  * 'Chris'
33
53
  * ) // Hello Buddy! My name is Chris.
@@ -44,55 +64,27 @@ declare function randomStr(size?: number, dict?: string): string;
44
64
  * @category string
45
65
  * @example
46
66
  * ```
47
- * capitalize('hello') => 'Hello'
67
+ * capitalize('hello world') => 'Hello world'
48
68
  * ```
49
69
  */
50
70
  declare function capitalize(str: string): string;
71
+ /**
72
+ * Slugify a string
73
+ * @category string
74
+ * @example
75
+ * ```
76
+ * slug('Hello World') => 'hello-world'
77
+ * ```
78
+ */
79
+ declare function slug(str: string, options?: SlugOptions): string;
51
80
 
52
- declare function isEmail(email: string): boolean;
53
- declare function isStrongPassword(password: string): boolean;
54
- declare function isAlphanumeric(username: string): boolean;
55
- declare function validateUsername(username: string): boolean;
56
- declare function isURL(url: string): boolean;
57
- declare function isMobilePhone(phoneNumber: string): boolean;
58
- declare function isAlpha(name: string): boolean;
59
- declare function isPostalCode(zipCode: string): boolean;
60
- declare function isDate(date: string): boolean;
61
- declare function isNumeric(number: string): boolean;
62
- declare function isBoolean(boolean: string): boolean;
63
- declare function isHexColor(color: string): boolean;
64
- declare function isHexadecimal(hex: string): boolean;
65
- declare function isBase64(base64: string): boolean;
66
- declare function isUUID(uuid: string): boolean;
67
- declare function isJSON(json: string): boolean;
68
- declare function isCreditCard(creditCard: string): boolean;
69
- declare function isISBN(isbn: string): boolean;
70
- declare function isIP(ip: string): boolean;
71
- declare function isIPRange(ip: string): boolean;
72
- declare function isMACAddress(macAddress: string): boolean;
73
- declare function isLatLong(latitude: string): boolean;
74
- declare function isLatitude(longitude: string): boolean;
75
- declare function isLongitude(longitude: string): boolean;
76
- declare function isCurrency(currency: string): boolean;
77
- declare function isDataURI(dataURI: string): boolean;
78
- declare function isMimeType(mimeType: string): boolean;
79
- declare function isJWT(jwt: string): boolean;
80
- declare function isMongoId(mongoId: string): boolean;
81
- declare function isAscii(ascii: string): boolean;
82
- declare function isBase32(base32: string): boolean;
83
- declare function isByteLength(byteLength: string): boolean;
84
- declare function isFQDN(fqdn: string): boolean;
85
- declare function isFullWidth(fullWidth: string): boolean;
86
- declare function isHalfWidth(halfWidth: string): boolean;
87
- declare function isHash(hash: string, algorithm: HashAlgorithm): boolean;
88
- declare function isHSL(hsl: string): boolean;
89
- declare function isIBAN(iban: string): boolean;
90
- declare function isIdentityCard(identityCard: string): boolean;
91
- declare function isISIN(isin: string): boolean;
92
- declare function isISO8601(iso8601: string): boolean;
93
- declare function isISRC(isrc: string): boolean;
94
- declare function isISSN(issn: string): boolean;
95
- declare function isISO31661Alpha2(iso31661Alpha2: string): boolean;
96
- declare function isISO31661Alpha3(iso31661Alpha3: string): boolean;
81
+ declare const plural: typeof pluralize.plural;
82
+ declare const singular: typeof pluralize.singular;
83
+ declare const isPlural: typeof pluralize.isPlural;
84
+ declare const isSingular: typeof pluralize.isSingular;
85
+ declare const addPluralRule: typeof pluralize.addPluralRule;
86
+ declare const addSingularRule: typeof pluralize.addSingularRule;
87
+ declare const addIrregularRule: typeof pluralize.addIrregularRule;
88
+ declare const addUncountableRule: typeof pluralize.addUncountableRule;
97
89
 
98
- export { capitalize, ensurePrefix, ensureSuffix, isAlpha, isAlphanumeric, isAscii, isBase32, isBase64, isBoolean, isByteLength, isCreditCard, isCurrency, isDataURI, isDate, isEmail, isFQDN, isFullWidth, isHSL, isHalfWidth, isHash, isHexColor, isHexadecimal, isIBAN, isIP, isIPRange, isISBN, isISIN, isISO31661Alpha2, isISO31661Alpha3, isISO8601, isISRC, isISSN, isIdentityCard, isJSON, isJWT, isLatLong, isLatitude, isLongitude, isMACAddress, isMimeType, isMobilePhone, isMongoId, isNumeric, isPostalCode, isStrongPassword, isURL, isUUID, randomStr, slash, template, validateUsername };
90
+ export { addIrregularRule, addPluralRule, addSingularRule, addUncountableRule, capitalize, ensurePrefix, ensureSuffix, isPlural, isSingular, plural, randomStr, singular, slash, slug, template };
package/dist/index.mjs CHANGED
@@ -1,7 +1,9 @@
1
1
  export { camelCase, capitalCase, constantCase, dotCase, headerCase, paramCase as kebabCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase } from 'change-case';
2
- export { addIrregularRule, addPluralRule, addSingularRule, addUncountableRule, isPlural, isSingular, plural, singular } from 'pluralize';
3
- import validator from 'validator';
2
+ export { titleCase } from 'title-case';
3
+ import slugify from 'slugify';
4
+ import pluralize from 'pluralize';
4
5
 
6
+ const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
5
7
  function slash(str) {
6
8
  return str.replace(/\\/g, "/");
7
9
  }
@@ -23,7 +25,6 @@ function template(str, ...args) {
23
25
  return args[index];
24
26
  });
25
27
  }
26
- const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
27
28
  function randomStr(size = 16, dict = urlAlphabet) {
28
29
  let id = "";
29
30
  let i = size;
@@ -35,141 +36,15 @@ function randomStr(size = 16, dict = urlAlphabet) {
35
36
  function capitalize(str) {
36
37
  return str[0].toUpperCase() + str.slice(1).toLowerCase();
37
38
  }
38
-
39
- function isEmail(email) {
40
- return validator.isEmail(email);
41
- }
42
- function isStrongPassword(password) {
43
- return validator.isStrongPassword(password);
44
- }
45
- function isAlphanumeric(username) {
46
- return validator.isAlphanumeric(username);
47
- }
48
- function validateUsername(username) {
49
- return isAlphanumeric(username);
50
- }
51
- function isURL(url) {
52
- return validator.isURL(url);
53
- }
54
- function isMobilePhone(phoneNumber) {
55
- return validator.isMobilePhone(phoneNumber);
56
- }
57
- function isAlpha(name) {
58
- return validator.isAlpha(name);
59
- }
60
- function isPostalCode(zipCode) {
61
- return validator.isPostalCode(zipCode, "any");
62
- }
63
- function isDate(date) {
64
- return validator.isDate(date);
65
- }
66
- function isNumeric(number) {
67
- return validator.isNumeric(number);
68
- }
69
- function isBoolean(boolean) {
70
- return validator.isBoolean(boolean);
71
- }
72
- function isHexColor(color) {
73
- return validator.isHexColor(color);
74
- }
75
- function isHexadecimal(hex) {
76
- return validator.isHexadecimal(hex);
77
- }
78
- function isBase64(base64) {
79
- return validator.isBase64(base64);
80
- }
81
- function isUUID(uuid) {
82
- return validator.isUUID(uuid);
83
- }
84
- function isJSON(json) {
85
- return validator.isJSON(json);
86
- }
87
- function isCreditCard(creditCard) {
88
- return validator.isCreditCard(creditCard);
89
- }
90
- function isISBN(isbn) {
91
- return validator.isISBN(isbn);
92
- }
93
- function isIP(ip) {
94
- return validator.isIP(ip);
95
- }
96
- function isIPRange(ip) {
97
- return validator.isIPRange(ip);
98
- }
99
- function isMACAddress(macAddress) {
100
- return validator.isMACAddress(macAddress);
101
- }
102
- function isLatLong(latitude) {
103
- return validator.isLatLong(latitude);
104
- }
105
- function isLatitude(longitude) {
106
- return validator.isLatLong(longitude);
107
- }
108
- function isLongitude(longitude) {
109
- return validator.isLatLong(longitude);
110
- }
111
- function isCurrency(currency) {
112
- return validator.isCurrency(currency);
113
- }
114
- function isDataURI(dataURI) {
115
- return validator.isDataURI(dataURI);
116
- }
117
- function isMimeType(mimeType) {
118
- return validator.isMimeType(mimeType);
119
- }
120
- function isJWT(jwt) {
121
- return validator.isJWT(jwt);
122
- }
123
- function isMongoId(mongoId) {
124
- return validator.isMongoId(mongoId);
125
- }
126
- function isAscii(ascii) {
127
- return validator.isAscii(ascii);
128
- }
129
- function isBase32(base32) {
130
- return validator.isBase32(base32);
131
- }
132
- function isByteLength(byteLength) {
133
- return validator.isByteLength(byteLength);
134
- }
135
- function isFQDN(fqdn) {
136
- return validator.isFQDN(fqdn);
137
- }
138
- function isFullWidth(fullWidth) {
139
- return validator.isFullWidth(fullWidth);
140
- }
141
- function isHalfWidth(halfWidth) {
142
- return validator.isHalfWidth(halfWidth);
143
- }
144
- function isHash(hash, algorithm) {
145
- return validator.isHash(hash, algorithm);
146
- }
147
- function isHSL(hsl) {
148
- return validator.isHSL(hsl);
149
- }
150
- function isIBAN(iban) {
151
- return validator.isIBAN(iban);
152
- }
153
- function isIdentityCard(identityCard) {
154
- return validator.isIdentityCard(identityCard);
155
- }
156
- function isISIN(isin) {
157
- return validator.isISIN(isin);
158
- }
159
- function isISO8601(iso8601) {
160
- return validator.isISO8601(iso8601);
161
- }
162
- function isISRC(isrc) {
163
- return validator.isISRC(isrc);
164
- }
165
- function isISSN(issn) {
166
- return validator.isISSN(issn);
167
- }
168
- function isISO31661Alpha2(iso31661Alpha2) {
169
- return validator.isISO31661Alpha2(iso31661Alpha2);
170
- }
171
- function isISO31661Alpha3(iso31661Alpha3) {
172
- return validator.isISO31661Alpha3(iso31661Alpha3);
39
+ function slug(str, options) {
40
+ if (options)
41
+ return slugify(str, options);
42
+ return slugify(str, {
43
+ lower: true,
44
+ strict: true
45
+ });
173
46
  }
174
47
 
175
- export { capitalize, ensurePrefix, ensureSuffix, isAlpha, isAlphanumeric, isAscii, isBase32, isBase64, isBoolean, isByteLength, isCreditCard, isCurrency, isDataURI, isDate, isEmail, isFQDN, isFullWidth, isHSL, isHalfWidth, isHash, isHexColor, isHexadecimal, isIBAN, isIP, isIPRange, isISBN, isISIN, isISO31661Alpha2, isISO31661Alpha3, isISO8601, isISRC, isISSN, isIdentityCard, isJSON, isJWT, isLatLong, isLatitude, isLongitude, isMACAddress, isMimeType, isMobilePhone, isMongoId, isNumeric, isPostalCode, isStrongPassword, isURL, isUUID, randomStr, slash, template, validateUsername };
48
+ const { plural, singular, isPlural, isSingular, addPluralRule, addSingularRule, addIrregularRule, addUncountableRule } = pluralize;
49
+
50
+ export { addIrregularRule, addPluralRule, addSingularRule, addUncountableRule, capitalize, ensurePrefix, ensureSuffix, isPlural, isSingular, plural, randomStr, singular, slash, slug, template };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/strings",
3
3
  "type": "module",
4
- "version": "0.51.0",
5
- "packageManager": "pnpm@7.26.3",
4
+ "version": "0.52.1",
5
+ "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks string utilities.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -34,7 +34,12 @@
34
34
  "functions",
35
35
  "stacks"
36
36
  ],
37
- "main": "dist/index.mjs",
37
+ "exports": {
38
+ ".": {
39
+ "types": "./dist/index.d.ts",
40
+ "import": "./dist/index.mjs"
41
+ }
42
+ },
38
43
  "module": "dist/index.mjs",
39
44
  "types": "dist/index.d.ts",
40
45
  "contributors": [
@@ -44,24 +49,19 @@
44
49
  "dist",
45
50
  "README.md"
46
51
  ],
47
- "engines": {
48
- "node": ">=v18.14.0",
49
- "pnpm": ">=7.26.3"
50
- },
51
52
  "peerDependencies": {
52
53
  "@types/pluralize": "^0.0.29",
53
- "@types/validator": "^13.7.11",
54
+ "@types/validator": "^13.7.17",
54
55
  "change-case": "^4.1.2",
55
56
  "pluralize": "^8.0.0",
57
+ "slugify": "^1.6.6",
58
+ "title-case": "^3.0.3",
56
59
  "validator": "^13.9.0",
57
- "@stacksjs/alias": "0.51.0",
58
- "@stacksjs/types": "0.51.0"
60
+ "@stacksjs/alias": "0.52.1",
61
+ "@stacksjs/types": "0.52.1"
59
62
  },
60
63
  "devDependencies": {
61
- "mkdist": "^1.1.0",
62
- "typescript": "^4.9.5",
63
- "unbuild": "^1.1.1",
64
- "@stacksjs/testing": "0.51.0"
64
+ "@stacksjs/development": "0.52.1"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "unbuild",
package/dist/index.cjs DELETED
@@ -1,247 +0,0 @@
1
- 'use strict';
2
-
3
- const changeCase = require('change-case');
4
- const pluralize = require('pluralize');
5
- const validator = require('validator');
6
-
7
- function slash(str) {
8
- return str.replace(/\\/g, "/");
9
- }
10
- function ensurePrefix(prefix, str) {
11
- if (!str.startsWith(prefix))
12
- return prefix + str;
13
- return str;
14
- }
15
- function ensureSuffix(suffix, str) {
16
- if (!str.endsWith(suffix))
17
- return str + suffix;
18
- return str;
19
- }
20
- function template(str, ...args) {
21
- return str.replace(/{(\d+)}/g, (match, key) => {
22
- const index = Number(key);
23
- if (Number.isNaN(index))
24
- return match;
25
- return args[index];
26
- });
27
- }
28
- const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
29
- function randomStr(size = 16, dict = urlAlphabet) {
30
- let id = "";
31
- let i = size;
32
- const len = dict.length;
33
- while (i--)
34
- id += dict[Math.random() * len | 0];
35
- return id;
36
- }
37
- function capitalize(str) {
38
- return str[0].toUpperCase() + str.slice(1).toLowerCase();
39
- }
40
-
41
- function isEmail(email) {
42
- return validator.isEmail(email);
43
- }
44
- function isStrongPassword(password) {
45
- return validator.isStrongPassword(password);
46
- }
47
- function isAlphanumeric(username) {
48
- return validator.isAlphanumeric(username);
49
- }
50
- function validateUsername(username) {
51
- return isAlphanumeric(username);
52
- }
53
- function isURL(url) {
54
- return validator.isURL(url);
55
- }
56
- function isMobilePhone(phoneNumber) {
57
- return validator.isMobilePhone(phoneNumber);
58
- }
59
- function isAlpha(name) {
60
- return validator.isAlpha(name);
61
- }
62
- function isPostalCode(zipCode) {
63
- return validator.isPostalCode(zipCode, "any");
64
- }
65
- function isDate(date) {
66
- return validator.isDate(date);
67
- }
68
- function isNumeric(number) {
69
- return validator.isNumeric(number);
70
- }
71
- function isBoolean(boolean) {
72
- return validator.isBoolean(boolean);
73
- }
74
- function isHexColor(color) {
75
- return validator.isHexColor(color);
76
- }
77
- function isHexadecimal(hex) {
78
- return validator.isHexadecimal(hex);
79
- }
80
- function isBase64(base64) {
81
- return validator.isBase64(base64);
82
- }
83
- function isUUID(uuid) {
84
- return validator.isUUID(uuid);
85
- }
86
- function isJSON(json) {
87
- return validator.isJSON(json);
88
- }
89
- function isCreditCard(creditCard) {
90
- return validator.isCreditCard(creditCard);
91
- }
92
- function isISBN(isbn) {
93
- return validator.isISBN(isbn);
94
- }
95
- function isIP(ip) {
96
- return validator.isIP(ip);
97
- }
98
- function isIPRange(ip) {
99
- return validator.isIPRange(ip);
100
- }
101
- function isMACAddress(macAddress) {
102
- return validator.isMACAddress(macAddress);
103
- }
104
- function isLatLong(latitude) {
105
- return validator.isLatLong(latitude);
106
- }
107
- function isLatitude(longitude) {
108
- return validator.isLatLong(longitude);
109
- }
110
- function isLongitude(longitude) {
111
- return validator.isLatLong(longitude);
112
- }
113
- function isCurrency(currency) {
114
- return validator.isCurrency(currency);
115
- }
116
- function isDataURI(dataURI) {
117
- return validator.isDataURI(dataURI);
118
- }
119
- function isMimeType(mimeType) {
120
- return validator.isMimeType(mimeType);
121
- }
122
- function isJWT(jwt) {
123
- return validator.isJWT(jwt);
124
- }
125
- function isMongoId(mongoId) {
126
- return validator.isMongoId(mongoId);
127
- }
128
- function isAscii(ascii) {
129
- return validator.isAscii(ascii);
130
- }
131
- function isBase32(base32) {
132
- return validator.isBase32(base32);
133
- }
134
- function isByteLength(byteLength) {
135
- return validator.isByteLength(byteLength);
136
- }
137
- function isFQDN(fqdn) {
138
- return validator.isFQDN(fqdn);
139
- }
140
- function isFullWidth(fullWidth) {
141
- return validator.isFullWidth(fullWidth);
142
- }
143
- function isHalfWidth(halfWidth) {
144
- return validator.isHalfWidth(halfWidth);
145
- }
146
- function isHash(hash, algorithm) {
147
- return validator.isHash(hash, algorithm);
148
- }
149
- function isHSL(hsl) {
150
- return validator.isHSL(hsl);
151
- }
152
- function isIBAN(iban) {
153
- return validator.isIBAN(iban);
154
- }
155
- function isIdentityCard(identityCard) {
156
- return validator.isIdentityCard(identityCard);
157
- }
158
- function isISIN(isin) {
159
- return validator.isISIN(isin);
160
- }
161
- function isISO8601(iso8601) {
162
- return validator.isISO8601(iso8601);
163
- }
164
- function isISRC(isrc) {
165
- return validator.isISRC(isrc);
166
- }
167
- function isISSN(issn) {
168
- return validator.isISSN(issn);
169
- }
170
- function isISO31661Alpha2(iso31661Alpha2) {
171
- return validator.isISO31661Alpha2(iso31661Alpha2);
172
- }
173
- function isISO31661Alpha3(iso31661Alpha3) {
174
- return validator.isISO31661Alpha3(iso31661Alpha3);
175
- }
176
-
177
- exports.camelCase = changeCase.camelCase;
178
- exports.capitalCase = changeCase.capitalCase;
179
- exports.constantCase = changeCase.constantCase;
180
- exports.dotCase = changeCase.dotCase;
181
- exports.headerCase = changeCase.headerCase;
182
- exports.kebabCase = changeCase.paramCase;
183
- exports.noCase = changeCase.noCase;
184
- exports.paramCase = changeCase.paramCase;
185
- exports.pascalCase = changeCase.pascalCase;
186
- exports.pathCase = changeCase.pathCase;
187
- exports.sentenceCase = changeCase.sentenceCase;
188
- exports.snakeCase = changeCase.snakeCase;
189
- exports.addIrregularRule = pluralize.addIrregularRule;
190
- exports.addPluralRule = pluralize.addPluralRule;
191
- exports.addSingularRule = pluralize.addSingularRule;
192
- exports.addUncountableRule = pluralize.addUncountableRule;
193
- exports.isPlural = pluralize.isPlural;
194
- exports.isSingular = pluralize.isSingular;
195
- exports.plural = pluralize.plural;
196
- exports.singular = pluralize.singular;
197
- exports.capitalize = capitalize;
198
- exports.ensurePrefix = ensurePrefix;
199
- exports.ensureSuffix = ensureSuffix;
200
- exports.isAlpha = isAlpha;
201
- exports.isAlphanumeric = isAlphanumeric;
202
- exports.isAscii = isAscii;
203
- exports.isBase32 = isBase32;
204
- exports.isBase64 = isBase64;
205
- exports.isBoolean = isBoolean;
206
- exports.isByteLength = isByteLength;
207
- exports.isCreditCard = isCreditCard;
208
- exports.isCurrency = isCurrency;
209
- exports.isDataURI = isDataURI;
210
- exports.isDate = isDate;
211
- exports.isEmail = isEmail;
212
- exports.isFQDN = isFQDN;
213
- exports.isFullWidth = isFullWidth;
214
- exports.isHSL = isHSL;
215
- exports.isHalfWidth = isHalfWidth;
216
- exports.isHash = isHash;
217
- exports.isHexColor = isHexColor;
218
- exports.isHexadecimal = isHexadecimal;
219
- exports.isIBAN = isIBAN;
220
- exports.isIP = isIP;
221
- exports.isIPRange = isIPRange;
222
- exports.isISBN = isISBN;
223
- exports.isISIN = isISIN;
224
- exports.isISO31661Alpha2 = isISO31661Alpha2;
225
- exports.isISO31661Alpha3 = isISO31661Alpha3;
226
- exports.isISO8601 = isISO8601;
227
- exports.isISRC = isISRC;
228
- exports.isISSN = isISSN;
229
- exports.isIdentityCard = isIdentityCard;
230
- exports.isJSON = isJSON;
231
- exports.isJWT = isJWT;
232
- exports.isLatLong = isLatLong;
233
- exports.isLatitude = isLatitude;
234
- exports.isLongitude = isLongitude;
235
- exports.isMACAddress = isMACAddress;
236
- exports.isMimeType = isMimeType;
237
- exports.isMobilePhone = isMobilePhone;
238
- exports.isMongoId = isMongoId;
239
- exports.isNumeric = isNumeric;
240
- exports.isPostalCode = isPostalCode;
241
- exports.isStrongPassword = isStrongPassword;
242
- exports.isURL = isURL;
243
- exports.isUUID = isUUID;
244
- exports.randomStr = randomStr;
245
- exports.slash = slash;
246
- exports.template = template;
247
- exports.validateUsername = validateUsername;