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

@botmock-api/utils

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@botmock-api/utils

utilities for handling data from the Botmock API

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

utils

this package is unstable and likely to undergo major API changes

This module exposes utilities for handling data from the Botmock API.

It uses TypeScript and is installable by running:

npm i @botmock-api/utils

API

createIntentMap(messages: Message[], intents: Intent[]): IntentMap

Returns a map of message ids and any intents connected to them.

createMessageCollector(map: IntentMap, getMessage: (id: string) => Message): () => string[]

Returns a function that collects all messages not connected by an intent.

Keywords

FAQs

Package last updated on 26 Jun 2019

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