@unmock/jaymock
Advanced tools
Comparing version 1.0.8 to 1.0.9
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11858
162
6