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

dumdum

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dumdum

Dummy data generator for local development, demos and testing purposes.

  • 1.0.0-alpha.5
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

dumdum

License NPM Version Build Status Code Coverage

Dummy data generator for local development, demos and testing purposes.

Install

npm i -D dumdum

Example

import DumDum from "dumdum";

const dumdum = DumDum.create();

// Plain text with a maxLength of 50:
const plainText1 = dumdum.text(50);
console.log(plainText1);

// Plain text with a minLength of 100 and a maxLength of 200:
const plainText2 = dumdum.text([100, 200]);
console.log(plainText2);

Roadmap

Generators

  • HTML generator (text() generator)
  • Markdown generator (text() generator)
  • Number generator

Localization

  • Chinese localization
  • Japanese localization
  • Portuguese localization
  • Spanish localization
  • Russian localization

Misc

  • Questions support (text() generator)
  • Increase maximum length to 1,000.

API

Options

Used with DumDum.create([config])

{
  locale: "fr" | "en"; // Default to "en".
}

Methods

text(maxLength[, type])
  • maxLength: Integer between 13 and 620.
  • type: String. Default to "plain".
text(interval[, type])
  • interval: [minLength, maxLength]
    • minLength: Integer between 12 and 619.
    • maxLength: Integer between 13 and 620.
  • type: String. Default to "plain".

Contribute

Get Started

yarn

Test

  • All Tests: yarn test
  • Lint Tests: yarn test:lint
  • Unit Tests: yarn test:unit
  • Unit Tests (watch): yarn test:watch

Generate Data

yarn data:generate [fr|en]...

Keywords

FAQs

Package last updated on 23 Jan 2020

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