How to use the @signalk/streams/logging.getFullLogDir function in @signalk/streams

To help you get started, we’ve selected a few @signalk/streams examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SignalK / signalk-server-node / src / interfaces / logfiles.js View on Github external
app.get('/logfiles/:filename', function(req, res, next) {
    const sanitizedLogfile = path
      .join(getFullLogDir(app), req.params.filename)
      .replace(/\.\./g, '')
    res.sendFile(sanitizedLogfile)
  })
}

@signalk/streams

Utilities for handling streams of Signal K data

Apache-2.0
Latest version published 2 months ago

Package Health Score

73 / 100
Full package analysis