mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
fix datagenerator readme
This commit is contained in:
parent
9bfce43b1f
commit
e8ee0a1801
@ -22,11 +22,11 @@ module, which can create rich sets of dummy data for testing or other uses.
|
|||||||
It will build a **string**, or a **parsed JSON object**, creating values based
|
It will build a **string**, or a **parsed JSON object**, creating values based
|
||||||
on the helper names below:
|
on the helper names below:
|
||||||
|
|
||||||
title, firstname, lastname, company, domain, tld, email,
|
title, firstName, lastName, company, domain, tld, email,
|
||||||
street, city, country, countryCode, zipcode, postcode,
|
street, city, country, countryCode, zipcode, postcode,
|
||||||
lat, long, phone, color, hexColor, guid,
|
lat, long, phone "+xx (x) xxxx xxx xxx", color, hexColor, guid,
|
||||||
ipv4, ipv6, lorem, date, time,
|
ipv4, ipv6, lorem nn, date, time,
|
||||||
lowercase, uppercase, int, float, boolean
|
lowercase (helper), uppercase (helper), int, float, boolean
|
||||||
|
|
||||||
Multiple values can be generated by use of the `repeat` syntax.
|
Multiple values can be generated by use of the `repeat` syntax.
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
<p>Uses the <i><a href="https://github.com/webroo/dummy-json" target="_new">dummy-json</a></i>
|
<p>Uses the <i><a href="https://github.com/webroo/dummy-json" target="_new">dummy-json</a></i>
|
||||||
module, which can create rich sets of dummy data for testing or other uses.</p>
|
module, which can create rich sets of dummy data for testing or other uses.</p>
|
||||||
<p>Will build a string or a parsed JSON object, creating values based on the helper names below:
|
<p>Will build a string or a parsed JSON object, creating values based on the helper names below:
|
||||||
<pre style="word-break:normal">title, firstname, lastname, company, domain, tld, email, street, city, country, countryCode, zipcode, postcode, lat, long, phone, color, hexColor, guid, ipv4, ipv6, lorem, date, time, lowercase, uppercase, int, float, boolean</pre>
|
<pre style="word-break:normal">title, firstName, lastName, company, domain, tld, email, street, city, country, countryCode, zipcode, postcode, lat, long, phone, color, hexColor, guid, ipv4, ipv6, lorem [nn], date, time, lowercase, uppercase, int, float, boolean</pre>
|
||||||
<p>Multiple values can be generated by use of the <i>repeat</i> syntax.</p>
|
<p>Multiple values can be generated by use of the <i>repeat</i> syntax.</p>
|
||||||
<p>In addition any properties passed in on <code>msg</code> can also be used - for example {{payload}}.</p>
|
<p>In addition any properties passed in on <code>msg</code> can also be used - for example {{payload}}.</p>
|
||||||
<p>Finally <code>msg.seed</code> can be used to preset the pseudo-random seed to ensure repeatability across calls.</p>
|
<p>Finally <code>msg.seed</code> can be used to preset the pseudo-random seed to ensure repeatability across calls.</p>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-data-generator",
|
"name" : "node-red-node-data-generator",
|
||||||
"version" : "0.0.4",
|
"version" : "0.0.5",
|
||||||
"description" : "A Node-RED node to create a string of dummy data values from a template. Useful for test-cases.",
|
"description" : "A Node-RED node to create a string of dummy data values from a template. Useful for test-cases.",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"dummy-json": "1.0.*"
|
"dummy-json": "1.*"
|
||||||
},
|
},
|
||||||
"repository" : {
|
"repository" : {
|
||||||
"type":"git",
|
"type":"git",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user