New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-viseo-file

Package Overview
Dependencies
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-viseo-file - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

node-get-lines.js

@@ -27,2 +27,3 @@ const helper = require('node-red-viseo-helper');

const input = (node, data, config) => {
let lines = Number(config.lines) || 100;

@@ -45,3 +46,4 @@ let filepath = helper.resolve(config.file);

.then(function(count) {
helper.setByString(data, config.output || "payload", myarray);
let result = (myarray.length <= lines) ? myarray : myarray.slice(Math.max(myarray.length - lines, 1));
helper.setByString(data, config.output || "payload", result);
return node.send(data);

@@ -48,0 +50,0 @@ })

{
"name": "node-red-contrib-viseo-file",
"version": "0.1.1",
"version": "0.1.2",
"author": "Jean-Philippe Encausse <jp@encausse.net> (http://encausse.net/)",

@@ -5,0 +5,0 @@ "description": "Utility nodes for SARAH",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc