[](https://www.npmjs.com/package/@snapshot-labs/snapshot.js)
npm install @snapshot-labs/snapshot.js
Snapshot.js was designed to work both in the browser and in Node.js.
To install Snapshot.js on Node.js, open your terminal and run:
``bash`
npm i @snapshot-labs/snapshot.js
#### Browser
You can create an index.html file and include Snapshot.js with:
`html`
#### Install dependencies
`bash`
yarn
#### Build package
`bash`
yarn build
#### Test cases
`bash`
yarn testor
yarn test:once
#### Other useful scripts
`bash``Format ABI
yarn ts-node scripts/abi.tsGenerate hash for types
yarn ts-node scripts/generateHashWithTypes.ts
MIT.