1.0.22 • Published 4 months ago

@dcentrica/metaport-agent-nodejs v1.0.22

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
4 months ago

Pipeline Status Latest Release Software License Docs

What is this?

A client library which connects a Javascript app to a Metaport server using the CycloneDX SBOM standard for data interchange.

The agent will automatically generate an SBOM for your app, submit it to Metaport and subsequently delete it. Data can be sent using the HTTP or Email transports. See the docs site for example requests.

If configured correctly, the agent provides a single executable metaport. It's designed to be invoked on a schedule via cron from within an application's production environment or as part of a CI/CD pipeline.

Requirements

  • nodejs ^18
  • libsodium23
  • libtool

Install

npm i @dcentrica/metaport-agent-nodejs

Configuration

Modify your app's package.json "scripts" section as follows:

"scripts": {
  "metaport": "node ./node_modules/@dcentrica/metaport-agent-nodejs/metaport.js"
}

Environment Variables

There are some environment variables which need to be set before the agent will operate correctly. Please see the docs site for more detailed installation and configuration instructions and examples.

Run

This is an example only. Please review the full agent documentation.

npm run metaport -- \
    --transport=http \
    --name='Acme Frontend' \
    --host=metaport.dev \
    --uuid='71caa01c-e724-4db0-acb8-05d7f712bd9c' \
    --domain='foo.com' \
    --env=PROD \
    --version=1.0.0 \
    --auth='bm90aWZpY2F0aW9uc0BhY21lLWV4cGxvc2l2ZXMuY29tOmR1bW15NDu' \
    --classic=1

Supported Frameworks

Metaport will automatically detect and report the following frameworks. Yours not listed? Contributions are very welcome. Please file an issue and issue a Merge Request, it's a one-line file change!

1.0.22

4 months ago

1.0.21

4 months ago

1.0.20

5 months ago

1.0.19

6 months ago

1.0.18

6 months ago

1.0.17

6 months ago

1.0.16

6 months ago

1.0.15

7 months ago

1.0.14

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.3

8 months ago

1.0.2

9 months ago

0.0.1-beta

9 months ago

1.0.0

9 months ago

1.0.0-beta18

9 months ago

1.0.0-beta4

9 months ago

1.0.0-beta2

9 months ago

1.0.0-beta1

9 months ago

1.0.1

9 months ago