Skip to content

Commit b39bb11

Browse files
committed
fix(readme): Fix how to import the lib
1 parent 77194a5 commit b39bb11

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ npm i -P @nogsantos/hash
3030

3131
<body>
3232

33-
<script src="./dist/hash.umd.min.js"></script>
33+
<script src="./node_modules/@nogsantos/hash/dist/hash.umd.min.js"></script>
3434
<script>
3535
var md5 = new Hash.Md5();
3636
var md5Results = [
@@ -57,17 +57,17 @@ npm i -P @nogsantos/hash
5757

5858
```
5959

60-
#### Output:
60+
#### Output
6161

6262
![Console](https://res.cloudinary.com/nogsantos/image/upload/v1517849815/Screenshot_from_2018-02-05_14-53-31_qk4smh.png)
6363

6464
### Node
6565

6666
```javascript
67-
const Md5 = require('./dist/hash').Md5;
68-
const Sha1 = require('./dist/hash').Sha1;
67+
const Md5 = require('@nogsantos/hash').Md5;
68+
const Sha1 = require('@nogsantos/hash').Sha1;
6969
// or just
70-
// const { Md5, Sha1} = require('./dist/hash');
70+
// const { Md5, Sha1} = require('@nogsantos/hash');
7171

7272
const md5 = new Md5();
7373
console.log('md5: ', md5.encode('Lorem ipsum dolor sit, amet consectetur adipisicing elit.'));

0 commit comments

Comments
 (0)