solana-web3.js

(★ 2,749)

Solana JavaScript SDK

File Explorer

  • .eslintignore
  • .eslintrc.js
  • .gitignore
  • .npmrc
  • .prettierignore
  • .prettierrc.yaml
  • .releaserc.json
  • .sgcrc
  • babel.config.json
  • commitlint.config.js
  • commitlint.sh
  • LICENSE
  • package.json
  • pnpm-lock.yaml
  • README.md
  • rollup.config.mjs
  • rollup.config.types.mjs
  • SECURITY.md
  • tsconfig.d.json
  • tsconfig.json
  • typedoc.json

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

npm install

View Details ▼

Install Node packages.

npm {{[i|install]}}

Install dependencies listed in `package.json`:

npm {{[i|install]}} {{package_name}}@{{version}}

Download a specific version of a package and add it to the list of dependencies in `package.json`:

npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}

Download the latest version of a package and add it to the list of dev dependencies in `package.json`:

🔍

npm run

View Details ▼

Run a script.

npm run

List available scripts:

npm run {{script_name}}

Run a script:

npm run {{script_name}} -- {{argument}} {{--option}}

Pass arguments to a script:

🔍

npm test

View Details ▼

This command is an alias of `npm run test`.

tldr npm run

View documentation for the original command:

// repository documentation