npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

fba-cli

v1.1.2

Published

A CLI (command line interface) to execute FBA (fishbone analysis) files with DLT-logs/adlt.

Downloads

25

Readme

fba-cli: A CLI (command line interface) to execute FBA (fishbone analysis ) files with DLT-logs/adlt

Summary

Executes fishbone-analysis files (fba) from the Visual Studio Code(tm) extension 'fishbone' Visual Studio Marketplace Version standalone - without vscode - on the console.

Execution performs:

  • run all badges queries on a list of provided DLT logs
  • generate a markdown report with any output from either the upper or the lower badge of all root causes.

Other features

  • Can be used to export embedded dlt-filters from the fishbone to be used with DLT-Viewer.

How to use

Preconditions:

  • Installed adlt and available in path. Check in terminal/console e.g. via adlt --version
  • node.js v18 or higher installed. Check via node --version
  • Install fba-cli via npm install fba-cli -g
  • If adlt plugins shall be used a config file in json/jsonc/json5 format with
{
  "dlt-logs.plugins":[
    // all plugins from dlt-logs/adlt are supported
     { // e.g. NonVerbose plugin
      "name": "NonVerbose",
      "enabled": true,
      "fibexDir": "<...path to non-verbose fibex files...>",
    },
    {
      "name": "SomeIp",
      "enabled": true,
      "fibexDir": "<...path to someip fibex files...>"
    },
    {
      "name": "Rewrite",
      "enabled": true,
      "rewrites": [
        {
          "name": "SYS/JOUR timestamp",
          "filter": {
            "apid": "SYS",
            "ctid": "JOUR"
          },
          "payloadRegex": "^.*? .*? (?<timeStamp>\\d+\\.\\d+) (?<text>.*)$"
        }
      ]
    },
    {
      "name": "CAN",
      "enabled": true,
      "fibexDir": "<...path to can fibex files...",
    }
  ]
}

Call from terminal/console

# fba-cli exec -c <config_file> <list of fba files> <list of DLT files>
# e.g.
fba-cli exec -c config.json analysis.fba recorded.dlt recorded_p2.dlt > analysis_report.md

if you dont have adlt in path you can start it manually with the options

cd 'path where adlt binary is installed'
adlt remote -p 7777

and then use fba-cli:

# fba-cli exec -p host:port -c <config_file> <list of fba files> <list of DLT files>
# e.g.
fba-cli exec -p 127.0.0.1:7777 -c config.json analysis.fba recorded.dlt recorded_p2.dlt > analysis_report.md

Export filters in DLT-Viewer format:

# fba-cli export -f dlt-viewer <name of fba file> <name of zip file containing the .dlf filters>
fba-cli export -f dlt-viewer analysis.fba analysis_filters.zip

Planned Features

  • included messages from all badge queries that provided an output
  • support graphical reports as well

Known Issues

  • embedded markdown background descriptions will not be properly formatted

Contributions

Any and all test, code or feedback contributions are welcome. Open an issue or create a pull request to make this tool/lib work better for all.

Donations Donations are welcome!

Third-party Content

This project leverages third party content. For details see the dependencies and devDependencies section in package.json.

Thanks to all contributors!