moderndash 0.0.15 → 0.0.17

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.
Files changed (66) hide show
  1. package/README.md +16 -75
  2. package/dist/index.cjs +704 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.ts +815 -0
  5. package/dist/index.js +631 -0
  6. package/dist/index.js.map +1 -0
  7. package/package.json +6 -5
  8. package/src/array/chunk.ts +0 -31
  9. package/src/array/difference.ts +0 -21
  10. package/src/array/differenceBy.ts +0 -30
  11. package/src/array/differenceWith.ts +0 -31
  12. package/src/array/dropRightWhile.ts +0 -28
  13. package/src/array/dropWhile.ts +0 -24
  14. package/src/array/index.ts +0 -21
  15. package/src/array/intersection.ts +0 -20
  16. package/src/array/intersectionBy.ts +0 -26
  17. package/src/array/intersectionWith.ts +0 -33
  18. package/src/array/sample.ts +0 -18
  19. package/src/array/sampleSize.ts +0 -31
  20. package/src/array/shuffle.ts +0 -33
  21. package/src/array/takeRightWhile.ts +0 -33
  22. package/src/array/takeWhile.ts +0 -33
  23. package/src/array/uniq.ts +0 -18
  24. package/src/array/uniqBy.ts +0 -25
  25. package/src/array/uniqWith.ts +0 -20
  26. package/src/array/unzip.ts +0 -20
  27. package/src/array/unzipWith.ts +0 -26
  28. package/src/array/zip.ts +0 -17
  29. package/src/array/zipWith.ts +0 -28
  30. package/src/collection/countBy.ts +0 -38
  31. package/src/collection/groupBy.ts +0 -32
  32. package/src/collection/index.ts +0 -3
  33. package/src/collection/sortBy.ts +0 -15
  34. package/src/function/after.ts +0 -29
  35. package/src/function/before.ts +0 -31
  36. package/src/function/debounce.ts +0 -125
  37. package/src/function/index.ts +0 -7
  38. package/src/function/memoize.ts +0 -63
  39. package/src/function/once.ts +0 -22
  40. package/src/function/throttle.ts +0 -13
  41. package/src/function/times.ts +0 -24
  42. package/src/helpers/collections.ts +0 -5
  43. package/src/helpers/shortHands.ts +0 -17
  44. package/src/helpers/stringModifiers.ts +0 -18
  45. package/src/helpers/typeofChecks.ts +0 -3
  46. package/src/index.ts +0 -7
  47. package/src/lang/index.ts +0 -4
  48. package/src/lang/isEmpty.ts +0 -51
  49. package/src/lang/isEqual.ts +0 -80
  50. package/src/lang/isEqualWith.ts +0 -34
  51. package/src/lang/isPlainObject.ts +0 -3
  52. package/src/object/index.ts +0 -1
  53. package/src/object/pick.ts +0 -21
  54. package/src/string/camelCase.ts +0 -30
  55. package/src/string/capitalize.ts +0 -14
  56. package/src/string/deburr.ts +0 -20
  57. package/src/string/escape.ts +0 -21
  58. package/src/string/escapeRegExp.ts +0 -15
  59. package/src/string/index.ts +0 -11
  60. package/src/string/kebabCase.ts +0 -25
  61. package/src/string/pascalCase.ts +0 -26
  62. package/src/string/snakeCase.ts +0 -30
  63. package/src/string/startCase.ts +0 -25
  64. package/src/string/stripSpecialChars.ts +0 -17
  65. package/src/string/unescape.ts +0 -22
  66. package/src/types.ts +0 -15
package/README.md CHANGED
@@ -2,92 +2,33 @@
2
2
 
3
3
  <p align=center>
4
4
  A Typescript-First utility library inspired by Lodash.
5
- Optimized for modern browsers.
5
+ Optimized for modern browsers, typescript & developer experience.
6
6
  </p>
7
7
  <p align=center>
8
8
  ✅ ESM
9
9
  ✅ Tree-shakable
10
10
  ✅ Typescript Strict Mode (no any types)
11
11
  ✅ Zero dependencies
12
+ ✅ Hoverable Docs
12
13
  </p>
13
14
 
14
- -------
15
+ <h2 align=center>
16
+ <a href="https://moderndash.io" target="_blank">
17
+ 📓 Documentation
18
+ </a>
19
+ </h2>
20
+
21
+ ---
15
22
 
16
23
  > **Warning**
17
24
  > This library is still in development and is not ready for production use.
18
25
 
19
- ## Documentation
20
- The documentation is WIP.
21
- [Documentation](https://moderndash.io/)
22
-
23
- ## Removed Functions because of trivial native alternatives
24
- Look at [You-Dont-Need-Lodash](https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore) for native replacements.
25
-
26
- ### Array Functions
27
- - compact
28
- - concat
29
- - differenceBy property shorthand
30
- - drop
31
- - dropRight
32
- - fill
33
- - findIndex
34
- - findLastIndex
35
- - first/head
36
- - flatten
37
- - flattenDeep
38
- - flattenDepth
39
- - fromPairs
40
- - initial
41
- - join
42
- - last
43
- - lastIndexOf
44
- - nth
45
- - without
46
- - reverse
47
- - slice
48
- - sortedIndexOf
49
- - tail
50
- - take
51
- - takeRight
52
- - without
53
-
54
- ### Collection Functions
55
- - each/forEach
56
- - every
57
- - filter
58
- - find
59
- - flatMap
60
- - includes
61
-
62
- ### String Functions
63
- - lowerCase
64
- - trim
65
- - trimEnd
66
- - trimStart
67
- - pad
68
- - padEnd
69
- - padStart
70
-
71
- Functions are not considered trivial if they:
72
- - include reduce methods
73
- - include multiple nested function calls
74
-
75
- ## TODO
76
- - More unzip tests
77
- - Check if flatmapdeep, flatmapDepth is included in native flatmap
78
- - GroupBy Property Shorthand
26
+ ## Installation
79
27
 
80
- ## Might be added later (open for discussion)
81
- - pull functions (pull, pullAll, pullAllBy, pullAllWith, pullAt)
82
- - remove
83
- - sorted functions (sortedIndex, sortedIndexBy, sortedIndexOf, sortedLastIndex, sortedLastIndexBy, sortedLastIndexOf, sortedUniq, sortedUniqBy)
84
- - if performance is better than native alternatives (testing needed)
85
- - xor functions (xor, xorBy, xorWith)
86
- - zipObject, zipObjectDeep
87
- - forEachRight
88
- - findLast
89
- - lowerFirst
90
- - keyBy
28
+ ```bash
29
+ npm install moderndash
30
+ ```
91
31
 
92
- ## Continue at
93
- - invokeMap
32
+ ## Why is X lodash function not included?
33
+ Please check [You-Dont-Need-Lodash](https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore) for native replacements.
34
+ If you still think a function is missing please open an issue.