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

jsontree-generator

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

jsontree-generator

Generate random json in hierarchical format

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

jsontree-generator

Generate json in hierarchical format as a gulp plugin.

There will be a better generation step but for the moment go to index.js and change the obj object to something that fits your data structure:

        var obj = function (){
            return { 	"name" : randomPerson(),
                "desc" : styledString("sentence", 14),
                "title" : styledString("title", 5),
                "age": randomNumber(60),
                "skills" : randomOption("js, css, html, python"),
                "status" : randomBoolean(),
                "stuff" : randomArray("mixed", randomNumber(8)),
                "children" : []
            }
        }

Supported options

randomPerson() Creates a real person name based on an international list taken from Fake Name Generator. Choses from a list of about 500 names.

randomNumber() Generates random number, is used as helper for many other functions.

Keywords

FAQs

Package last updated on 18 Jul 2014

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