Socket
Book a DemoInstallSign in
Socket

dfb-luis-apps-lib

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

dfb-luis-apps-lib

Given an endpoint and key, the middleware returns an object with an array of all apps, with versions per app, with models per version.

1.0.11
unpublished
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Middleware for LUIS authoring

Apps, versions, and models

Given an endpoint and key, the middleware returns an object with an array of all apps, with versions per app, with models per version.

How to run

  • npm install dfb-luis-apps-lib

  • Create index.js with the following:

    const LuisDataTable = require('dfb-luis-apps-lib').LuisDataTable;
    const getDataTable = async () => {
        try {
            const values = {
                'endpoint': 'https://westus.api.cognitive.microsoft.com/',
                'key': 'REPLACE-WITHh-YOUR-AUTHORING-KEY'
            };
            const features = {
                'versions': true,
                'models': true
            };
    
            return await LuisDataTable.getDataTable(values, features);
    
        } catch (err) {
            console.log(err);
        }
    }
    
    getDataTable().then((dataTable) => {
        console.log(JSON.stringify(dataTable));
    }).catch(err => {
        console.log(err);
    })
    
  • Change the endpoint and the key to your own authoring key and endpoint.

  • Run at the terminal or command line with: node index.js > apps.json.

  • Open apps.json file to review output.

Caveats

  • Values object is required.
  • Features object is optional. Turn features on get the versions and models.
  • .d.ts files are available for typescript projects.

FAQs

Package last updated on 20 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.