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

@unmock/jaymock

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unmock/jaymock - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

3

package.json
{
"name": "@unmock/jaymock",
"version": "1.0.8",
"version": "1.0.9",
"description": "Minimal fake JSON test data generator",

@@ -43,2 +43,3 @@ "main": "index.js",

"nyc": "^14.1.1",
"supervillains": "^3.0.0",
"tsd": "^0.11.0",

@@ -45,0 +46,0 @@ "xo": "^0.25.3"

@@ -5,3 +5,3 @@ # jaymock

[![CircleCI](https://img.shields.io/circleci/build/github/unmock/jaymock?style=for-the-badge)](https://circleci.com/gh/unmock/jaymock) [![Codecov](https://img.shields.io/codecov/c/github/unmock/jaymock?style=for-the-badge)](https://codecov.io/gh/unmock/jaymock)
[![CircleCI](https://img.shields.io/circleci/build/github/unmock/jaymock?style=for-the-badge)](https://circleci.com/gh/unmock/jaymock) [![XO](https://img.shields.io/badge/code_style-XO-5ed9c7.svg?style=for-the-badge)](https://github.com/xojs/xo) [![Codecov](https://img.shields.io/codecov/c/github/unmock/jaymock?style=for-the-badge)](https://codecov.io/gh/unmock/jaymock)

@@ -36,3 +36,6 @@ ## Install

const randExp = require('randexp').randexp
jm.extend('ssn', () => randExp(/^\d{3}-\d{2}-\d{4}$/)) // Add custom functions using `jaymock.extend`
// Add custom functions using `.extend()`
jm.extend({
ssn: () => randExp(/^\d{3}-\d{2}-\d{4}$/)
})

@@ -39,0 +42,0 @@ const fakeData = jm.populate(data)

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