Giter Site home page Giter Site logo

thedemodev / will-it-generate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gatsbyjs/will-it-generate

0.0 0.0 0.0 1.24 GB

A utility to generate benchmark data of varying sizes with similar complexity

License: MIT License

JavaScript 99.83% Batchfile 0.17%

will-it-generate's Introduction

willit

Gatsby's benchmark data generator

Generates JSON or MDX files, with a datashape resembling a typical article, into the current directory.

oclif Version Downloads/week License

Usage

$ npm install -g willit
$ willit COMMAND
running command...
$ willit (-v|--version|version)
willit/1.0.0 darwin-x64 node-v12.13.1
$ willit --help [COMMAND]
USAGE
  $ willit COMMAND
...

Options

level

willit --level=1

The level is the amount of articles to generate. Each level correlates to the number of times to double starting our base number of 512. So Level 1 = 512, Level 2 = 1024, Level 3 = 2048, etc

num-pages

willit --num-pages=512

num-pages allows a specific number of articles to be generated. It overrides level if both are used.

type

willit type="mdx" --level=1

There are three types currently, json, mdx, or md. json is the default and will generate JSON files into a data directory. mdx and md will generate temporary JSON files and then convert them to MDX in a src/articles directory.

use-pregenerated-data

willit --use-pregenerated-data --level=1 --type="mdx"

This fetches pre-generated data from the repo instead of generating on the fly. num-pages works if there's a corresponding pregenerated data-set for the number set. See ./src/data/articles/ for available pregenerated datasets

will-it-generate's People

Contributors

aaaakshat avatar dependabot[bot] avatar tylerbarnes avatar

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.