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:
npm i @snapshot-labs/snapshot.js
You can create an index.html file and include Snapshot.js with:
<script src="https://cdn.jsdelivr.net/npm/@snapshot-labs/snapshot.js"></script>
yarn
yarn build
yarn test
# or
yarn test:once
# Format ABI
yarn ts-node scripts/abi.ts
# Generate hash for types
yarn ts-node scripts/generateHashWithTypes.ts
MIT.