Code Monkey home page Code Monkey logo

dumdum's Introduction

dumdum

License NPM Package 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]...

dumdum's People

Contributors

dependabot-preview[bot] avatar ivangabriele avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar

dumdum's Issues

Dependabot couldn't find a package.json for this project

Dependabot couldn't find a package.json for this project.

Dependabot requires a package.json to evaluate your project's current JavaScript dependencies. It had expected to find one at the path: /npm_and_yarn/helpers/package.json.

If this isn't a JavaScript project, or if it is a library, you may wish to disable updates for it in the .dependabot/config.yml file in this repo.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • build(dev-deps): replace dependency rollup-plugin-node-resolve with @rollup/plugin-node-resolve 6.0.0
  • build(dev-deps): update dependency axios to v1
  • build(dev-deps): update dependency rimraf to v5
  • build(dev-deps): update dependency rollup to v3
  • build(dev-deps): update dependency typescript to v5
  • chore(deps): update dependency bl to v6

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/check.yml
  • actions/checkout v3
  • actions/setup-node v3
  • actions/checkout v3
  • actions/setup-node v3
.github/workflows/release.yml
  • actions/checkout v3
  • actions/setup-node v3
npm
package.json
  • @types/jest 27.5.1
  • axios 0.27.2
  • codecov 3.8.3
  • download 8.0.0
  • jest 28.1.0
  • make-dir 3.1.0
  • ora 6.1.0
  • prettier 2.6.2
  • proload 1.0.0-beta.4
  • ramda 0.28.0
  • rimraf 3.0.2
  • rollup 2.74.1
  • rollup-plugin-cleaner 1.0.0
  • rollup-plugin-commonjs 10.1.0
  • rollup-plugin-json 4.0.0
  • rollup-plugin-node-resolve 5.2.0
  • rollup-plugin-typescript2 0.31.2
  • rorre 1.2.0
  • ts-jest 28.0.2
  • tslint 6.1.3
  • tslint-config-airbnb 5.11.2
  • tslint-config-prettier 1.18.0
  • typescript 4.6.4
  • yargs 17.5.1
  • bl 5.0.0
  • handlebars 4.7.7

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.