New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

generaterandomjson

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

generaterandomjson

replace tokens in JSON

latest
npmnpm
Version
1.1.1
Version published
Weekly downloads
6
500%
Maintainers
1
Weekly downloads
 
Created
Source

generaterandomjson

Replaces tokens in a JSON

Install

$ npm install generaterandomjson

Usage

It takes a JSON with the predefined tokens to replace and returns a JSON

/**
 * Replaces TOKENS
 *
 * Current TOKENS
 * WHOLE10 WHOLE100 WHOLE1000
 * WHOLE-1TO4
 * TRUEORFALSE
 *
 */
const generaterandomjson = require("generaterandomjson");

generaterandomjson({foo: "WHOLE100" })
// return {foo: 42}

FAQs

Package last updated on 31 Oct 2021

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