@krainovsd/js-helpers 0.2.2

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 (77) hide show
  1. package/README.md +23 -0
  2. package/lib/cjs/index.cjs +2914 -0
  3. package/lib/cjs/index.cjs.map +1 -0
  4. package/lib/esm/index.js +2909 -0
  5. package/lib/esm/index.js.map +1 -0
  6. package/package.json +79 -0
  7. package/tmp/constants/api.d.ts +4 -0
  8. package/tmp/constants/colors.d.ts +6 -0
  9. package/tmp/constants/date.d.ts +8 -0
  10. package/tmp/constants/environment.d.ts +6 -0
  11. package/tmp/constants/fields.d.ts +8 -0
  12. package/tmp/constants/index.d.ts +5 -0
  13. package/tmp/index.d.ts +4 -0
  14. package/tmp/lib/api/core.d.ts +19 -0
  15. package/tmp/lib/api/index.d.ts +1 -0
  16. package/tmp/lib/api/middlewares/auth-middleware.d.ts +2 -0
  17. package/tmp/lib/api/middlewares/console-middleware.d.ts +2 -0
  18. package/tmp/lib/api/middlewares/index.d.ts +2 -0
  19. package/tmp/lib/api/token-request.d.ts +2 -0
  20. package/tmp/lib/browser/download-file.d.ts +7 -0
  21. package/tmp/lib/browser/download-json.d.ts +1 -0
  22. package/tmp/lib/browser/index.d.ts +3 -0
  23. package/tmp/lib/browser/read-file.d.ts +1 -0
  24. package/tmp/lib/colors/get-color-format.d.ts +1 -0
  25. package/tmp/lib/colors/index.d.ts +6 -0
  26. package/tmp/lib/colors/take-opacity-colors.d.ts +1 -0
  27. package/tmp/lib/colors/transform-hex-to-rgb.d.ts +1 -0
  28. package/tmp/lib/colors/transform-rgb-to-rgba.d.ts +1 -0
  29. package/tmp/lib/colors/transform-rgba-to-rgb.d.ts +1 -0
  30. package/tmp/lib/colors/transform-to-color.d.ts +2 -0
  31. package/tmp/lib/date/date-difference.d.ts +2 -0
  32. package/tmp/lib/date/date-format.d.ts +1 -0
  33. package/tmp/lib/date/get-date-by-rules.d.ts +2 -0
  34. package/tmp/lib/date/get-today.d.ts +4 -0
  35. package/tmp/lib/date/get-tomorrow.d.ts +1 -0
  36. package/tmp/lib/date/get-yesterday.d.ts +1 -0
  37. package/tmp/lib/date/index.d.ts +9 -0
  38. package/tmp/lib/date/is-today.d.ts +2 -0
  39. package/tmp/lib/date/is-tomorrow.d.ts +2 -0
  40. package/tmp/lib/date/is-yesterday.d.ts +2 -0
  41. package/tmp/lib/index.d.ts +5 -0
  42. package/tmp/lib/typings/check-type.d.ts +1 -0
  43. package/tmp/lib/typings/index.d.ts +11 -0
  44. package/tmp/lib/typings/is-array.d.ts +1 -0
  45. package/tmp/lib/typings/is-boolean.d.ts +1 -0
  46. package/tmp/lib/typings/is-date.d.ts +1 -0
  47. package/tmp/lib/typings/is-id.d.ts +1 -0
  48. package/tmp/lib/typings/is-null.d.ts +1 -0
  49. package/tmp/lib/typings/is-nullable.d.ts +1 -0
  50. package/tmp/lib/typings/is-number.d.ts +1 -0
  51. package/tmp/lib/typings/is-object.d.ts +1 -0
  52. package/tmp/lib/typings/is-string.d.ts +1 -0
  53. package/tmp/lib/typings/is-undefined.d.ts +1 -0
  54. package/tmp/lib/utils/array-to-map-by-key.d.ts +1 -0
  55. package/tmp/lib/utils/build-query-string.d.ts +2 -0
  56. package/tmp/lib/utils/create-url-with-params.d.ts +7 -0
  57. package/tmp/lib/utils/field-view-format.d.ts +2 -0
  58. package/tmp/lib/utils/get-by-path.d.ts +1 -0
  59. package/tmp/lib/utils/get-file-name-from-header.d.ts +1 -0
  60. package/tmp/lib/utils/index.d.ts +16 -0
  61. package/tmp/lib/utils/json-parse.d.ts +1 -0
  62. package/tmp/lib/utils/limit-stream-of-requests.d.ts +14 -0
  63. package/tmp/lib/utils/random-number.d.ts +1 -0
  64. package/tmp/lib/utils/random-string.d.ts +1 -0
  65. package/tmp/lib/utils/set-by-path.d.ts +1 -0
  66. package/tmp/lib/utils/sync-object-values.d.ts +1 -0
  67. package/tmp/lib/utils/transform-to-number.d.ts +1 -0
  68. package/tmp/lib/utils/trim-url.d.ts +1 -0
  69. package/tmp/lib/utils/wait-until.d.ts +1 -0
  70. package/tmp/lib/utils/wait.d.ts +1 -0
  71. package/tmp/libs.d.ts +2 -0
  72. package/tmp/types/api.d.ts +33 -0
  73. package/tmp/types/colors.d.ts +3 -0
  74. package/tmp/types/common.d.ts +2 -0
  75. package/tmp/types/date.d.ts +7 -0
  76. package/tmp/types/fields.d.ts +3 -0
  77. package/tmp/types/index.d.ts +5 -0
package/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # @krainovsd/utils
2
+
3
+ Пакет с часто используемыми хелперами в проектах.
4
+
5
+ ## Download
6
+
7
+ ```
8
+ yarn add @krainovsd/utils
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```
14
+ const utils = require('@krainovsd/utils');
15
+
16
+ ```
17
+
18
+ или
19
+
20
+ ```
21
+ import { ksdu } from "@krainovsd/utils"
22
+
23
+ ```