Skip to content
This repository was archived by the owner on Sep 25, 2021. It is now read-only.

Commit 4fd88d4

Browse files
committed
Added es6 example in package
1 parent 9bef407 commit 4fd88d4

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ method with the string as argument:
2828
```js
2929
var hash = md5("value"); // "2063c1608d6e0baf80249c42e2be5804"
3030
```
31+
### in es6 imports
32+
33+
In `crc/md5` folder still available raw es6 source, without babel/rollup.
34+
You can use them in your projects, when raw es6 is required.
35+
36+
```javascript
37+
import md5 from 'md5';
38+
var hash = md5("value"); // "2063c1608d6e0baf80249c42e2be5804"
39+
40+
```
3141

3242
### Server-side
3343

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "blueimp-md5-es6",
3-
"version": "2.7.0",
3+
"version": "2.7.3",
44
"title": "JavaScript MD5",
55
"description": "JavaScript MD5 implementation. Compatible with server-side environments like Node.js, module loaders like RequireJS, Browserify or webpack and all web browsers.",
66
"keywords": [
77
"javascript",
88
"md5"
99
],
10-
"homepage": "https://github.com/blueimp/JavaScript-MD5",
10+
"homepage": "https://github.com/gunins/JavaScript-MD5",
1111
"author": {
1212
"name": "Sebastian Tschan",
1313
"url": "https://blueimp.net"
@@ -20,7 +20,7 @@
2020
],
2121
"repository": {
2222
"type": "git",
23-
"url": "git://github.com/blueimp/JavaScript-MD5.git"
23+
"url": "git://github.com/gunins/JavaScript-MD5.git"
2424
},
2525
"license": "MIT",
2626
"devDependencies": {

0 commit comments

Comments
 (0)