@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 CHANGED
@@ -1,11 +1,15 @@
1
1
  Revision history for @opndev/util
2
2
 
3
- 0.0.7
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 2023-08-27 15:13:21-0400
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
@@ -18,3 +18,5 @@ export { defined } from './defined.mjs'
18
18
  export { pow_of_two } from './powtwo.mjs'
19
19
  export { is_pow_of_two } from './ispowtwo.mjs'
20
20
  export { range } from './range.mjs'
21
+ export { ucFirst } from './ucFirst.mjs'
22
+ export { lcFirst } from './lcFirst.mjs'
@@ -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 }
@@ -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 }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opndev/util",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Utility functions for OPN Development",
5
5
  "main": "lib/index.mjs",
6
6
  "type": "module",