1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

parser node info updates

This commit is contained in:
Dave Conway-Jones 2016-02-12 13:16:28 +00:00
parent b7a0ad703a
commit 4cb45e2712
4 changed files with 7 additions and 7 deletions

View File

@ -68,12 +68,12 @@
</script> </script>
<script type="text/x-red" data-help-name="csv"> <script type="text/x-red" data-help-name="csv">
<p>A function that parses the <b>msg.payload</b> to convert CSV to/from a javascript object. <p>A function that parses the <code>msg.payload</code> to convert CSV to/from a javascript object.
Places the result in the payload.</p> Places the result in the payload.</p>
<p>If the input is a string it tries to parse it as CSV and creates a javascript object.</p> <p>If the input is a string it tries to parse it as CSV and creates a javascript object.</p>
<p>If the input is a javascript object it tries to build a CSV string.</p> <p>If the input is a javascript object it tries to build a CSV string.</p>
<p>If the input is a simple array the output is just a CSV generated from that array.</p> <p>If the input is a simple array the output is just a CSV generated from that array.</p>
<p>If the input is an array of arrays or an array of objects a multiple-line CSV is created.</p> <p>If the input is an array of arrays, or an array of objects, a multiple-line CSV is created.</p>
<p>The columns template should contain an ordered list of column headers. For CSV input these become the property names. <p>The columns template should contain an ordered list of column headers. For CSV input these become the property names.
For CSV output these specify the properties to extract from the object and the order for the CSV.</p> For CSV output these specify the properties to extract from the object and the order for the CSV.</p>
<p>If the input is an array then the columns template does not matter, but can be used to generate a row of column titles.</p> <p>If the input is an array then the columns template does not matter, but can be used to generate a row of column titles.</p>

View File

@ -44,7 +44,7 @@
</script> </script>
<script type="text/x-red" data-help-name="html"> <script type="text/x-red" data-help-name="html">
<p>Extracts elements from an html document held in <b>msg.payload</b> using a selector.</p> <p>Extracts elements from an html document held in <code>msg.payload</code> using a selector.</p>
<p>The selector uses <a href=="https://github.com/cheeriojs/cheerio/blob/master/Readme.md" target="_new">Cheerio</a> <p>The selector uses <a href=="https://github.com/cheeriojs/cheerio/blob/master/Readme.md" target="_new">Cheerio</a>
which uses the <a href="https://github.com/fb55/CSSselect#user-content-supported-selectors" target="_new">CSS selector</a> syntax.</p> which uses the <a href="https://github.com/fb55/CSSselect#user-content-supported-selectors" target="_new">CSS selector</a> syntax.</p>
<p>The result can be either a single message with a payload containing an array of the matched elements, or multiple <p>The result can be either a single message with a payload containing an array of the matched elements, or multiple

View File

@ -22,7 +22,7 @@
</script> </script>
<script type="text/x-red" data-help-name="json"> <script type="text/x-red" data-help-name="json">
<p>A function that parses the <b>msg.payload</b> to convert a JSON string to/from a javascript object. Places the result back into the payload.</p> <p>A function that parses the <code>msg.payload</code> to convert a JSON string to/from a javascript object. Places the result back into the payload.</p>
<p>If the input is a JSON string it tries to parse it to a javascript object.</p> <p>If the input is a JSON string it tries to parse it to a javascript object.</p>
<p>If the input is a javascript object it creates a JSON string.</p> <p>If the input is a javascript object it creates a JSON string.</p>
</script> </script>

View File

@ -33,11 +33,11 @@
</script> </script>
<script type="text/x-red" data-help-name="xml"> <script type="text/x-red" data-help-name="xml">
<p>A function that parses the <b>msg.payload</b> to convert xml to/from a javascript object. Places the result in the payload.</p> <p>A function that parses the <code>msg.payload</code> to convert xml to/from a javascript object. Places the result in the payload.</p>
<p>If the input is a string it tries to parse it as XML and creates a javascript object.</p> <p>If the input is a string it tries to parse it as XML and creates a javascript object.</p>
<p>If the input is a javascript object it tries to build an XML string.</p> <p>If the input is a javascript object it tries to build an XML string.</p>
<p>You can also pass in a <b>msg.options</b> object to overide all the multitude of parameters. See <p>You can also pass in a <code>msg.options</code> object to overide all the multitude of parameters. See
<a href="https://github.com/Leonidas-from-XIV/node-xml2js/blob/master/README.md" target="_new">the xml2js docs <i>here</i></a> <a href="https://github.com/Leonidas-from-XIV/node-xml2js/blob/master/README.md#options" target="_new">the xml2js docs</a>
for more information.</p> for more information.</p>
<p>If set, options in the edit dialogue override those passed in on the msg.options object.</p> <p>If set, options in the edit dialogue override those passed in on the msg.options object.</p>
</script> </script>