@opndev/util 0.0.7 → 0.0.8
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/Changes +7 -3
- package/lib/index.mjs +2 -0
- package/lib/lcFirst.mjs +13 -0
- package/lib/ucFirst.mjs +13 -0
- package/package.json +1 -1
package/Changes
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
Revision history for @opndev/util
|
|
2
2
|
|
|
3
|
-
0.
|
|
3
|
+
0.08 2024-06-04 11:55:03-0400
|
|
4
|
+
|
|
5
|
+
* Add ucFirst, lcFirst functions. Why doesn't JS have these in core?
|
|
6
|
+
|
|
7
|
+
0.0.7 2024-01-19 14:19:56-0400
|
|
4
8
|
|
|
5
9
|
* Add additional information when throwing an error in pow functions
|
|
6
10
|
* Bump requirements for node-tap
|
|
7
11
|
|
|
8
|
-
0.0.6
|
|
12
|
+
0.0.6 2023-09-03 17:20:58-0400
|
|
9
13
|
|
|
10
14
|
* Maintainer release:
|
|
11
15
|
* Make use of gitlab pages for documenation
|
|
@@ -17,7 +21,7 @@ Revision history for @opndev/util
|
|
|
17
21
|
|
|
18
22
|
* Include .mjs files in package
|
|
19
23
|
|
|
20
|
-
0.0.4
|
|
24
|
+
0.0.4 2023-08-27 15:13:21-0400
|
|
21
25
|
|
|
22
26
|
* Add two mathematical functions:
|
|
23
27
|
* is_pow_of_two
|
package/lib/index.mjs
CHANGED
package/lib/lcFirst.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if a value is preset in the given array, can be done via a function or
|
|
3
|
+
* a primitive. Objects tend to be harder. Use lodash instead.
|
|
4
|
+
*
|
|
5
|
+
* @function lcFirst
|
|
6
|
+
* @param {String} string Anything
|
|
7
|
+
* @returns {String} string With the first letter uppercased
|
|
8
|
+
*/
|
|
9
|
+
export default function lcFirst(string) {
|
|
10
|
+
return string.charAt(0).toLowerCase() + string.slice(1);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { lcFirst }
|
package/lib/ucFirst.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if a value is preset in the given array, can be done via a function or
|
|
3
|
+
* a primitive. Objects tend to be harder. Use lodash instead.
|
|
4
|
+
*
|
|
5
|
+
* @function ucFirst
|
|
6
|
+
* @param {String} string Anything
|
|
7
|
+
* @returns {String} string With the first letter uppercased
|
|
8
|
+
*/
|
|
9
|
+
export default function ucFirst(string) {
|
|
10
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { ucFirst }
|