@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.
- package/README.md +23 -0
- package/lib/cjs/index.cjs +2914 -0
- package/lib/cjs/index.cjs.map +1 -0
- package/lib/esm/index.js +2909 -0
- package/lib/esm/index.js.map +1 -0
- package/package.json +79 -0
- package/tmp/constants/api.d.ts +4 -0
- package/tmp/constants/colors.d.ts +6 -0
- package/tmp/constants/date.d.ts +8 -0
- package/tmp/constants/environment.d.ts +6 -0
- package/tmp/constants/fields.d.ts +8 -0
- package/tmp/constants/index.d.ts +5 -0
- package/tmp/index.d.ts +4 -0
- package/tmp/lib/api/core.d.ts +19 -0
- package/tmp/lib/api/index.d.ts +1 -0
- package/tmp/lib/api/middlewares/auth-middleware.d.ts +2 -0
- package/tmp/lib/api/middlewares/console-middleware.d.ts +2 -0
- package/tmp/lib/api/middlewares/index.d.ts +2 -0
- package/tmp/lib/api/token-request.d.ts +2 -0
- package/tmp/lib/browser/download-file.d.ts +7 -0
- package/tmp/lib/browser/download-json.d.ts +1 -0
- package/tmp/lib/browser/index.d.ts +3 -0
- package/tmp/lib/browser/read-file.d.ts +1 -0
- package/tmp/lib/colors/get-color-format.d.ts +1 -0
- package/tmp/lib/colors/index.d.ts +6 -0
- package/tmp/lib/colors/take-opacity-colors.d.ts +1 -0
- package/tmp/lib/colors/transform-hex-to-rgb.d.ts +1 -0
- package/tmp/lib/colors/transform-rgb-to-rgba.d.ts +1 -0
- package/tmp/lib/colors/transform-rgba-to-rgb.d.ts +1 -0
- package/tmp/lib/colors/transform-to-color.d.ts +2 -0
- package/tmp/lib/date/date-difference.d.ts +2 -0
- package/tmp/lib/date/date-format.d.ts +1 -0
- package/tmp/lib/date/get-date-by-rules.d.ts +2 -0
- package/tmp/lib/date/get-today.d.ts +4 -0
- package/tmp/lib/date/get-tomorrow.d.ts +1 -0
- package/tmp/lib/date/get-yesterday.d.ts +1 -0
- package/tmp/lib/date/index.d.ts +9 -0
- package/tmp/lib/date/is-today.d.ts +2 -0
- package/tmp/lib/date/is-tomorrow.d.ts +2 -0
- package/tmp/lib/date/is-yesterday.d.ts +2 -0
- package/tmp/lib/index.d.ts +5 -0
- package/tmp/lib/typings/check-type.d.ts +1 -0
- package/tmp/lib/typings/index.d.ts +11 -0
- package/tmp/lib/typings/is-array.d.ts +1 -0
- package/tmp/lib/typings/is-boolean.d.ts +1 -0
- package/tmp/lib/typings/is-date.d.ts +1 -0
- package/tmp/lib/typings/is-id.d.ts +1 -0
- package/tmp/lib/typings/is-null.d.ts +1 -0
- package/tmp/lib/typings/is-nullable.d.ts +1 -0
- package/tmp/lib/typings/is-number.d.ts +1 -0
- package/tmp/lib/typings/is-object.d.ts +1 -0
- package/tmp/lib/typings/is-string.d.ts +1 -0
- package/tmp/lib/typings/is-undefined.d.ts +1 -0
- package/tmp/lib/utils/array-to-map-by-key.d.ts +1 -0
- package/tmp/lib/utils/build-query-string.d.ts +2 -0
- package/tmp/lib/utils/create-url-with-params.d.ts +7 -0
- package/tmp/lib/utils/field-view-format.d.ts +2 -0
- package/tmp/lib/utils/get-by-path.d.ts +1 -0
- package/tmp/lib/utils/get-file-name-from-header.d.ts +1 -0
- package/tmp/lib/utils/index.d.ts +16 -0
- package/tmp/lib/utils/json-parse.d.ts +1 -0
- package/tmp/lib/utils/limit-stream-of-requests.d.ts +14 -0
- package/tmp/lib/utils/random-number.d.ts +1 -0
- package/tmp/lib/utils/random-string.d.ts +1 -0
- package/tmp/lib/utils/set-by-path.d.ts +1 -0
- package/tmp/lib/utils/sync-object-values.d.ts +1 -0
- package/tmp/lib/utils/transform-to-number.d.ts +1 -0
- package/tmp/lib/utils/trim-url.d.ts +1 -0
- package/tmp/lib/utils/wait-until.d.ts +1 -0
- package/tmp/lib/utils/wait.d.ts +1 -0
- package/tmp/libs.d.ts +2 -0
- package/tmp/types/api.d.ts +33 -0
- package/tmp/types/colors.d.ts +3 -0
- package/tmp/types/common.d.ts +2 -0
- package/tmp/types/date.d.ts +7 -0
- package/tmp/types/fields.d.ts +3 -0
- 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
|
+
```
|