Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ethersproject/wordlists

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/wordlists

Word lists for BIP39 wallets.

  • 5.7.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
765K
decreased by-10.57%
Maintainers
1
Weekly downloads
 
Created

What is @ethersproject/wordlists?

@ethersproject/wordlists is a part of the ethers.js library, which provides utilities for working with wordlists, such as those used in mnemonic phrases for cryptocurrency wallets. It supports multiple languages and allows for encoding and decoding of mnemonic phrases.

What are @ethersproject/wordlists's main functionalities?

Get Wordlist

This feature allows you to retrieve a specific wordlist, such as the English wordlist, and access individual words by their index.

const { wordlists } = require('@ethersproject/wordlists');
const englishWordlist = wordlists.en;
console.log(englishWordlist.getWord(0)); // 'abandon'

Get Wordlist Language

This feature allows you to get the language/locale of a specific wordlist.

const { wordlists } = require('@ethersproject/wordlists');
const englishWordlist = wordlists.en;
console.log(englishWordlist.locale); // 'en'

Get Word Index

This feature allows you to get the index of a specific word in the wordlist.

const { wordlists } = require('@ethersproject/wordlists');
const englishWordlist = wordlists.en;
console.log(englishWordlist.getWordIndex('abandon')); // 0

Other packages similar to @ethersproject/wordlists

Keywords

FAQs

Package last updated on 19 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc