Inner JSON parameter is ignored

Dear all,

I try to use npm lib "Bitgener" through Node-Red.

It's works but partially.

I use folowed script in function-node, but inner parameter "hri" just passed and ignoring by Node-red.

At same time if run this script through Node.js all works complitelly.

Please, give me solution or direction.

const bitgener ='bitgener');
const ret = await bitgener({
      data: 'DTR111222',
      type: 'code93',
      output: 'QA13.svg',
      encoding: 'utf8',
      crc: false,
      padding: 25,
      barWidth: 5,
      barHeight: 150,
      original1DSize: true,
      addQuietZone: true,
      color: '#000000',
      opacity: 1,
      bgColor: '#FFFFFF',
      bgOpacity: 0.1,
      hri: {
       show: true,
        fontFamily: 'Futura',
        fontSize: 25,
       marginTop: 20,
[{"id":"1e6c154b.1609bb","type":"tab","label":"FRONT","disabled":false,"info":""},{"id":"36d8f29a.04b69e","type":"function","z":"1e6c154b.1609bb","name":"svg","func":"const bitgener ='bitgener');\n\n    const ret = await bitgener({\n      data: 'DTR111222',\n      type: 'code93',\n      output: 'QA13.svg',\n      encoding: 'utf8',\n      crc: false,\n      padding: 25,\n      barWidth: 5,\n      barHeight: 150,\n      original1DSize: true,\n      addQuietZone: true,\n      color: '#000000',\n      opacity: 1,\n      bgColor: '#FFFFFF',\n      bgOpacity: 0.1,\n      hri: {\n        show: true,\n        fontFamily: 'Futura',\n        fontSize: 25,\n        marginTop: 20,\n      },\n    });\n\n    msg.payload = ret;\n ","outputs":1,"noerr":0,"initialize":"","finalize":"","x":630,"y":340,"wires":[[]]},{"id":"f6d8d50e.524768","type":"inject","z":"1e6c154b.1609bb","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":430,"y":340,"wires":[["36d8f29a.04b69e"]]}]

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.