@travi/any
Advanced tools
Comparing version 1.0.8 to 1.1.0
@@ -112,5 +112,5 @@ # API Reference | ||
An almost direct usage of [`word()` from chance.js](http://chancejs.com/#word). | ||
No options are passed to the chance method because I have not had a need for | ||
anything but the default version yet. | ||
Direct usage of [`word()` from chance.js](http://chancejs.com/#word). | ||
Options are passed directly to the chance method so refer to its documentation | ||
for what is available. | ||
@@ -125,2 +125,33 @@ ### `word` example | ||
## `sentence` | ||
Direct usage of [`sentence()` from chance.js](http://chancejs.com/#sentence). | ||
Options are passed directly to the chance method so refer to its documentation | ||
for what is available. | ||
### `sentence` example | ||
```js | ||
any.sentence(); | ||
// 'Witpevze mappos isoletu fo res bi geow pofin mu rupoho revzi utva ne.' | ||
``` | ||
## `paragraph` | ||
Direct usage of [`paragraph()` from chance.js](http://chancejs.com/#paragraph). | ||
Options are passed directly to the chance method so refer to its documentation | ||
for what is available. | ||
### `paragraph` example | ||
```js | ||
any.paragraph(); | ||
// 'Lel fi huepe jupu akse zej ire vesik kojvulom zon is biwuwkef pa. Uv hokivej voh ebu | ||
// numdogi akolo hik uwlez ta vacev ofdaimi acunetum suvet uhdab ir soglazo ju pafbeb. Pub | ||
// cezeh fuc kebamnul he ok luumoabi rawkig me fov pin zup biv risugra. Ralpunad apkomgib | ||
// alnirciw akel wa lus wahfum burog buol vecotihe abadahoj ugolo wovki ucojal fec.' | ||
``` | ||
## `integer` | ||
@@ -158,2 +189,4 @@ | ||
Produces a random boolean value (`true` or `false`). | ||
Options are passed directly to the chance method so refer to its documentation | ||
for what is available. | ||
@@ -184,5 +217,5 @@ ### `boolean` example | ||
An almost direct usage of [`email()` from chance.js](http://chancejs.com/#email). | ||
No options are passed to the chance method because I have not had a need for | ||
anything but the default version yet. | ||
Direct usage of [`email()` from chance.js](http://chancejs.com/#email). | ||
Options are passed directly to the chance method so refer to its documentation | ||
for what is available. | ||
@@ -189,0 +222,0 @@ ### `email` example |
@@ -21,13 +21,19 @@ 'use strict'; | ||
}; | ||
var word = function word() { | ||
return chance.word(); | ||
var word = function word(options) { | ||
return chance.word(options); | ||
}; | ||
var sentence = function sentence(options) { | ||
return chance.sentence(options); | ||
}; | ||
var paragraph = function paragraph(options) { | ||
return chance.paragraph(options); | ||
}; | ||
var url = function url(options) { | ||
return chance.url(options); | ||
}; | ||
var boolean = function boolean() { | ||
return chance.bool(); | ||
var boolean = function boolean(options) { | ||
return chance.bool(options); | ||
}; | ||
var email = function email() { | ||
return chance.email(); | ||
var email = function email(options) { | ||
return chance.email(options); | ||
}; | ||
@@ -97,2 +103,4 @@ var date = function date() { | ||
word: word, | ||
sentence: sentence, | ||
paragraph: paragraph, | ||
integer: integer, | ||
@@ -99,0 +107,0 @@ float: float, |
@@ -17,13 +17,19 @@ import _ from 'lodash'; | ||
}; | ||
var word = function word() { | ||
return chance.word(); | ||
var word = function word(options) { | ||
return chance.word(options); | ||
}; | ||
var sentence = function sentence(options) { | ||
return chance.sentence(options); | ||
}; | ||
var paragraph = function paragraph(options) { | ||
return chance.paragraph(options); | ||
}; | ||
var url = function url(options) { | ||
return chance.url(options); | ||
}; | ||
var boolean = function boolean() { | ||
return chance.bool(); | ||
var boolean = function boolean(options) { | ||
return chance.bool(options); | ||
}; | ||
var email = function email() { | ||
return chance.email(); | ||
var email = function email(options) { | ||
return chance.email(options); | ||
}; | ||
@@ -93,2 +99,4 @@ var date = function date() { | ||
word: word, | ||
sentence: sentence, | ||
paragraph: paragraph, | ||
integer: integer, | ||
@@ -95,0 +103,0 @@ float: float, |
{ | ||
"name": "@travi/any", | ||
"version": "1.0.8", | ||
"version": "1.1.0", | ||
"description": "random data generator for when test data is insignificant", | ||
@@ -67,3 +67,3 @@ "main": "lib/any.cjs.js", | ||
"semantic-release": "6.3.6", | ||
"sinon": "2.3.3", | ||
"sinon": "2.3.5", | ||
"validate-commit-msg": "2.12.2" | ||
@@ -70,0 +70,0 @@ }, |
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
16307
200