You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
Use all the functions in [multihash](//github.com/jbenet/multihash).
7
13
@@ -21,20 +27,26 @@ For now, it just uses `crypto`, but will use `sha3` and `blake2`, etc.
21
27
$ npm install --save multihashing
22
28
```
23
29
24
-
```javascript
30
+
```js
25
31
var multihashing =require('multihashing')
26
32
```
27
33
28
-
### In the Browser through browserify
34
+
## Use in a browser with browserify, webpack or any other bundler
35
+
36
+
The code published to npm that gets loaded on require is in fact a ES5 transpiled version with the right shims added. This means that you can require it and use with your favourite bundler without having to adjust asset management process.
29
37
30
-
Same as in Node.js, you just have to [browserify](https://github.com/substack/js-browserify) the code before serving it. See the browserify repo for how to do that.
38
+
```js
39
+
var multihashing =require('multihashing')
40
+
```
31
41
32
-
### In the Browser through `<script>` tag
42
+
##Use in a browser Using a script tag
33
43
34
-
Make the [multihashing.min.js](/dist/multihashing.min.js) available through your server and load it using a normal `<script>` tag, this will export the `multihashing`constructor on the `window` object, such that:
44
+
Loading this module through a script tagwill make the `multihashing`obj available in the global namespace.
0 commit comments