File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -74,13 +74,13 @@ should be installed as one of your project's `dependencies` or `devDependencies`
74
74
75
75
``` sh
76
76
# # using npm
77
- npm install --save-dev @feedzai/js-utilities
77
+ npm install @feedzai/js-utilities
78
78
79
79
# # using yarn
80
- yarn add --dev @feedzai/js-utilities
80
+ yarn add @feedzai/js-utilities
81
81
82
82
# # using pnpm
83
- pnpm add -D @feedzai/js-utilities
83
+ pnpm add @feedzai/js-utilities
84
84
```
85
85
86
86
## Usage
@@ -96,10 +96,16 @@ To import a piece of code into your javascript project just do:
96
96
97
97
``` js
98
98
// Just one function
99
- import { throwError } from " @feedzai/js-utilities" ;
99
+ import { isNil } from " @feedzai/js-utilities" ;
100
+
101
+ // Just a single module, with the full path to the file
102
+ import isNil from " @feedzai/js-utilities/dist/functions/typed/is-nil" ;
100
103
101
104
// Multiple functions
102
- import { callIfExists , throwError , getLSItem , useConstant } from " @feedzai/js-utilities" ;
105
+ import { callIfExists , throwError , getLSItem } from " @feedzai/js-utilities" ;
106
+
107
+ // React Hooks
108
+ import { useMount , useConstant } from " @feedzai/js-utilities/hooks" ;
103
109
104
110
// Alias the whole object
105
111
import * as JS_UTILS from " @feedzai/js-utilities" ;
You can’t perform that action at this time.
0 commit comments