diff --git a/function/datagenerator/README.md b/function/datagenerator/README.md index 1e3beb40..6c71d994 100644 --- a/function/datagenerator/README.md +++ b/function/datagenerator/README.md @@ -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 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, - lat, long, phone, color, hexColor, guid, - ipv4, ipv6, lorem, date, time, - lowercase, uppercase, int, float, boolean + lat, long, phone "+xx (x) xxxx xxx xxx", color, hexColor, guid, + ipv4, ipv6, lorem nn, date, time, + lowercase (helper), uppercase (helper), int, float, boolean Multiple values can be generated by use of the `repeat` syntax. diff --git a/function/datagenerator/datagenerator.html b/function/datagenerator/datagenerator.html index d983d36d..133b8288 100644 --- a/function/datagenerator/datagenerator.html +++ b/function/datagenerator/datagenerator.html @@ -30,7 +30,7 @@

Uses the dummy-json module, which can create rich sets of dummy data for testing or other uses.

Will build a string or a parsed JSON object, creating values based on the helper names below: -

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
+
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

Multiple values can be generated by use of the repeat syntax.

In addition any properties passed in on msg can also be used - for example {{payload}}.

Finally msg.seed can be used to preset the pseudo-random seed to ensure repeatability across calls.

diff --git a/function/datagenerator/package.json b/function/datagenerator/package.json index 5aae89e2..fcf1e382 100644 --- a/function/datagenerator/package.json +++ b/function/datagenerator/package.json @@ -1,9 +1,9 @@ { "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.", "dependencies" : { - "dummy-json": "1.0.*" + "dummy-json": "1.*" }, "repository" : { "type":"git",