2019-08-22 01:52:17 -04:00
-----
Documentation: [html ](https://docs-beta.ethers.io/ )
-----
2019-08-21 01:53:47 -04:00
Getting Started
===============
Installing
----------
The various Classes and Functions are available to be imported
2020-02-17 17:56:50 -05:00
manually from sub-packages under the [@ethersproject ](../Users/ricmoo/Development/ethers/ethers.js-v5/https:/www.npmjs.com/search?q=%40ethersproject%2F )
2019-08-21 01:53:47 -04:00
but for most projects, the umbrella package is the easiest way to
get started.
```
/home/ricmoo> npm install --save ethers@next
```
Importing
---------
### Node.js
```
// CommonJS
const { ethers } = require("ethers");
// ES6 or TypeScript
const { ethers } = require("ethers");
```
### Web Browser
It is generally better practice (for security reasons) to copy the
2020-02-17 17:56:50 -05:00
[ethers library ](../Users/ricmoo/Development/ethers/ethers.js-v5/https:/cdn.ethers.io/lib/ethers-5.0.esm.min.js ) to your own webserver and serve it
yourself.
2019-08-21 01:53:47 -04:00
For quick demos or prototyping though, it can be loaded in your
Web Applications from our CDN.
```
2019-12-13 22:05:10 -05:00
< script src = "https://cdn.ethers.io/lib/ethers-5.0.esm.min.js"
2019-08-21 01:53:47 -04:00
type="application/javascipt">< / script >
```
-----
2020-02-25 14:57:11 -05:00
**Content Hash:** 411fea94db73d596369fae807658111c05acc4906540f2790fda6dec071b4d4e