New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bnid-cli

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bnid-cli

Base-N Id Generator Command Line Interface

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
5
Created
Source

JavaScript Base-N Id Generator Command Line Interface (bnid-cli)

Node.js CI

A command line interface for the bnid library to generate random ids and encode and decode them using various base-N encodings.

Table of Contents

Background

This package provides and command line interface tool to generate random ids and encode and decode them in various base-N encodings. The main functionality is provided by the bnid package.

Install

NPM

npm install bnid-cli

Git

To install locally (for development):

git clone https://github.com/digitalbazaar/bnid-cli.git
cd bnid-cli
npm install

Usage

A command line interface tool called bnid is provided to generate and encode ids. Please see bnid for a deeper insight into the meaning of the options.

bnid can be run installed, run directly, or run via npx:

npm install -g bnid-cli
bnid [OPTIONS]
./bnid [OPTIONS]
npx bnid-cli [OPTIONS]

The options follow the API. See help for more information:

npx bnid-cli --help

Examples:

npx bnid-cli
> zL8ajDGq3G44VpTnB7UVMq2
npx bnid-cli -e base16 --no-multibase -n 64
> da3cc9f90f9f8427
npx bnid-cli -e base16 --no-multibase -n 64 -b 128
> 000000000000000063bb5478d65f80ab
npx bnid-cli -n 32
z6uGJaE
npx bnid-cli -n 32
zipFBr
# Note: -f used to ensure fixed length
npx bnid-cli -n 32 -f
z17vsf8
npx bnid-cli -n 32 -b 64
z111113TqAT2

Contribute

Please follow the existing code style.

PRs accepted.

If editing the README, please conform to the standard-readme specification.

Commercial Support

Commercial support for this library is available upon request from Digital Bazaar: support@digitalbazaar.com

License

BSD-3-Clause © Digital Bazaar

Keywords

id

FAQs

Package last updated on 17 Jul 2023

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