ic-mops 0.3.6 → 0.3.7
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 +11 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,17 +38,26 @@ mops init
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
### 3. Install Motoko Packages
|
|
41
|
-
|
|
41
|
+
Use `mops add` to install a specific package and save it to `mops.toml`
|
|
42
42
|
|
|
43
43
|
```
|
|
44
44
|
mops add <package_name>
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
+
Use `mops install` to install all packages specified in `mops.toml`
|
|
48
|
+
```
|
|
49
|
+
mops install
|
|
50
|
+
```
|
|
51
|
+
|
|
47
52
|
### 4. Import Package
|
|
48
53
|
Now you can import installed packages in your Motoko code
|
|
49
54
|
|
|
50
55
|
```motoko
|
|
51
|
-
import
|
|
56
|
+
import PackageName "mo:<package_name>";
|
|
57
|
+
```
|
|
58
|
+
for example
|
|
59
|
+
```
|
|
60
|
+
import Itertools "mo:itertools/Iter";
|
|
52
61
|
```
|
|
53
62
|
|
|
54
63
|
## Publish a Package
|