New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mstate-angular

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mstate-angular

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

latest
npmnpm
Version
0.4.9
Version published
Weekly downloads
16
-33.33%
Maintainers
1
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;
  start?: boolean; // default true
  who?: string;
  instanceID?: string;
  onInstanceChange?: (value: string) => void;
  handleCustomField?: (key: string) => any;
  onSuccess?: (actionName: string) => void;
  onError?: (errors: any[]) => void;
}

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

import { Mstate } from 'mstate-angular';

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

import Mstate from 'mstate-angular';

Example

import Mstate from 'mstate-angular';

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

FAQs

Package last updated on 18 Mar 2026

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