🚀 Launch Week Day 5:Introducing Immutable Scans.Learn More →
Socket
Book a DemoInstallSign in
Socket

@hiro-graph/populate

Package Overview
Dependencies
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@hiro-graph/populate

Populate a graph with data for tests

unpublished
latest
npmnpm
Version
7.2.0
Version published
Maintainers
4
Created
Source

@hiro-grap/populate

Tool for populating graph with data.

Install

The tool is executable and can be installed locally, or globally.

Local

yarn add -D @hiro/graph-populate

Global

yarn global add @hiro/graph-populate

Usage

A config (.rc, .json, .js or in package.json) for hiro-graph-populate is required. The config will be used to populate a graph using the details given in the environmental variables.

Local

yarn hiro-graph-populate

Global

hiro-graph-populate

Environmental variables

Environment variables must be set in-order to retrieve a token, a .env. file can be used for this:

HIRO_CLIENT_ID=[application client id]
HIRO_CLIENT_SECRET=[application secret]
HIRO_GRAPH_URL=https://stagegraph.arago.co
HIRO_GRAPH_USER_NAME=[username]
HIRO_GRAPH_USER_PASSWORD=[password]

Config

Config is required and can be stored as:

  • hiro-graph-populate in package.json
  • .hiro-graph-populaterc (JSON or YAML)
  • .hiro-graph-populaterc.{json|yaml|yml|js}
  • hiro-graph-populate.config.js

Populate

{
    "populate": [
        {
            "name": "a.arago-demo.com",
            "admins": [
                {
                    "name": "Lydia Mason",
                    "email": "lydia.mason@a.arago-demo.com",
                    "password": "test"
                }
            ],
            "users": [
                {
                    "name": "Nyah Cross",
                    "email": "nyah.cross@a.arago-demo.com",
                    "password": "test"
                },
                {
                    "name": "Mia Rose",
                    "email": "mia-rose.irving@a.arago-demo.com",
                    "password": "test"
                }
            ]
        }
    ]
}

Generate

{
    "generate": {
        "orgs": {
            "name": "arago-demo.com",
            "count": 18
        },
        "users": {
            "perOrg": 5,
            "password": "test123"
        },
        "admins": {
            "perOrg": 1,
            "password": "test123"
        }
    }
}

FAQs

Package last updated on 14 Oct 2019

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