nuaudit-node-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.17.0 • Public • Published

nuaudit. Node.js SDK

Installation

yarn install nuaudit-node-sdk

Usage

import Nuaudit from 'nuaudit-node-sdk';

const nuaudit = new Nuaudit(
    "API_KEY_SECRET",
    "ORGANIZATION_ID",
    "TRAIL_ID"
)

(async () => {
    await nuaudit.createRecord(
        "Added artwork to the gallery.",
        {
            "type": "human",
            "id": "jane",
            "name": "Jane",
            "email": "jane@example.org",
            "ipAddress": "127.0.0.1"
        },
        {
            "type": "artwork",
            "id": "thepainting",
            "title": "The painting",
            "material": "canvas",
            "paint": "oil",
            "year": 2018
        }
    )
)()

/nuaudit-node-sdk/

    Package Sidebar

    Install

    npm i nuaudit-node-sdk

    Weekly Downloads

    0

    Version

    0.17.0

    License

    MIT

    Unpacked Size

    8.43 kB

    Total Files

    7

    Last publish

    Collaborators

    • nuaudit