Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

botbuilder-dialog-loader

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botbuilder-dialog-loader

A Library that helps to autload Microsoft Bot Framework dialogs

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

botbuilder-dialog-loader

A Library that helps to autload Microsoft Bot Framework dialogs. Autoloads dialogs from provided folder, able to pass custom arguments for dialogs. It is supposed that every javascript file in the folder will expose only function with bot as first argument. Recommendation: match dialog id's with the dialog folder structure.

Please do not hesitate to ask or publish your proposals.

Loader arguments

So require('botbuilder-dialog-loader') will return a function that requires next arguments: . bot - a UniversalBot instance; . basePath - a path to dialogs folder; . config - (optional) could be a function or an object. . If function passed, than the Library will call it with every loaded javascript module. Callback arguments: relative filename, exports section of the loaded module; . If an object passed, than the Library will interprete keys in the object as names of folders and files. Attribute values will be passed as an arguments to loaded files, in case if filename (with directory name) matches to a key i config object. Example of such object: javascript { "folderA" : { "folderB" : { "some_dialogs" : [arg1, ..., argN] // A } }, "welcome" : ["Hello", "Wolrd!"] }

Usage Example

Please take a look on example folder in repository.

Installation

    npm install --save botbuilder-dialog-loader

Keywords

FAQs

Package last updated on 03 Nov 2017

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc