Skip to content

The SCANOSS scanner.c is a simple console-based OSS scanner using the free OSSKB (Open Source KB)

License

Notifications You must be signed in to change notification settings

mscasso/scanner.c

Repository files navigation

scanner.c

This is a simple implementation of a console file scanner using the SCANOSS OSSKB, which allows you to perform identification of Open Source components, files or even snippets in your own code.

For more information, please visit the OSSKB homepage at https://osskb.org

Usage

Scanner requires a file path to be specified as the command argument. If no file is specified, the scanner version and usage help is displayed.

Usage example:

$ scanner mz.c
{
  "mz.c": [
    {
      "id": "file",
      "lines": "all",
      "oss_lines": "all",
      "matched": "100%",
      "vendor": "scanoss",
      "component": "minr",
      "version": "1.18",
      "latest": "1.18",
      "url": "https://github.com/scanoss/minr/archive/1.18.tar.gz",
      "file": "minr-1.18/src/mz.c",
      "size": "9680",
      "dependencies": [],
      "licenses": [
        {
          "name": "GPL-2.0-only",
          "source": "declared"
        }
      ],
      "elapsed": "0.000277s"
    }
}

License

scanner.c is released under the GPL 2.0 license. Please check the LICENSE file for further details.

About

The SCANOSS scanner.c is a simple console-based OSS scanner using the free OSSKB (Open Source KB)

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published