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

bulk-strings

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bulk-strings

A simple random bulk string generator. Useful for testing/benchmarking applications.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

bulk-strings

A simple random bulk string generator. Useful for testing/benchmarking applications.

Install

Install with npm:

$ npm install --save bulk-strings

Usage

Here are examples to generate 10 strings, 3-4 characters in length:

JavaScript

const bulkStrings = require('bulk-strings');

// generate 10 strings, 3-4 characters in length
bulkStrings({ total: 10, min: 3, max: 4 });

CLI

$ bulk-strings --total 10 --min 3 --max 4

Options

  • total - The total number of strings to generate (default: 100).
  • min - The minimum length of each string (default: 1).
  • max - The maximum length of each string (default: 10).
  • format - The output format (default: array). Valid options are:
    • array - JavaScript array
    • csv - Delimited string (useful with separator option)
    • json - JSON formatted string
  • separator - Character(s) used to join the strings together (if format is csv) (default: ,).
  • file - A file path to write output to.

Keywords

FAQs

Package last updated on 19 May 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