Skip to content

Commit

Permalink
Add nodejs v12 is required in readme and package.json (#14)
Browse files Browse the repository at this point in the history
* Add nodejs v12 is required in readme

* add node engine strict >=12.0.0 in package.json
  • Loading branch information
totiz authored and perfectmak committed Jul 7, 2019
1 parent a5d1587 commit 676401a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
8 changes: 8 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ Libra Core [js] is a javascript library client that can be used to interact with
The end goal is to make it usable both in node and on browser clients too, but currently it is mostly compatible with node.

## Prepare
- Node ^v12.0.0 is reuiqred for sha3-256.
You can use nvm to download/use node v12 by following.
```sh
nvm install 12
nvm use 12
```

## Installation
To install with npm run:

Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"name": "libra-core",
"version": "1.0.0-alpha",
"description": "Library for Crypto",
"engines": {
"node": ">=12.0.0"
},
"engineStrict": true,
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down

0 comments on commit 676401a

Please sign in to comment.