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

mstate-executor

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mstate-executor

MState is a library designed to automate workflows by managing state transitions and actions efficiently. It enables developers to create state machines, which are useful for defining and controlling the various states an object or process can pass throug

  • 1.1.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
228
increased by96.55%
Maintainers
0
Weekly downloads
 
Created
Source

MState is a library designed to automate workflows by managing state transitions and actions efficiently. It enables developers to create state machines, which are useful for defining and controlling the various states an object or process can pass through, especially in complex workflows.

interface MStateProps {
  token: string;
  workflow: string;
  theme?: 'dark' | 'light' | 'system'; // default system
  start?: boolean; // default true
  who?: string;
  instanceID?: string;
  onInstanceChange?: (value: string) => void;
  updateCustomFieldValue?: (key: string) => unknown;
}

Once the package is installed, you can import the library using import or require approach:

import { Mstate } from 'mstate-executor';

You can also use the default export, since the named export is just a re-export from the Axios factory:

import Mstate from 'mstate-executor';

Example

import Mstate from 'mstate-executor';

<Mstate
  token="your-secret-key"
  instanceID="instance-id"
  workflow="workflow-name-with-path"
/>;

Keywords

FAQs

Package last updated on 16 Nov 2024

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