0.0.191 • Published 6 days ago

quidproquo-actionprocessor-node v0.0.191

Weekly downloads
-
License
MIT
Repository
github
Last release
6 days ago

quidproquo-actionprocessor-node

The quidproquo-actionprocessor-node library provides a set of generic action processors for the quidproquo framework, allowing you to easily integrate common functionality into your Node.js-based applications.

Key Features

  1. Comprehensive Action Processors: This library includes a wide range of action processors that cover various common use cases, such as date/time operations, error handling, event processing, GUID generation, logging, math operations, network requests, platform-specific functionality (e.g., delays), and system-level actions.

  2. Extensibility: The action processor architecture is designed to be highly extensible, allowing you to easily add custom action processors to meet your specific requirements.

  3. Dependency Injection: The action processors are integrated with the quidproquo dependency injection system, making it easy to compose and test your application components.

  4. Testability: The action-oriented architecture and asynchronous execution model of quidproquo-actionprocessor-node make it highly testable, with support for unit, integration, and end-to-end testing.

  5. Portability: While the quidproquo-actionprocessor-node library is designed to run on Node.js, the underlying quidproquo-core library is platform-agnostic, allowing you to potentially use these action processors in other environments as well.

Getting Started

To use the quidproquo-actionprocessor-node library, you'll need to install the package and its dependencies. You can do this using your preferred package manager, such as npm or yarn:

npm install quidproquo-actionprocessor-node

Once you have the package installed, you can start using the provided action processors in your quidproquo-based application. The library exports a set of action processors that you can import and use in your code.

Action Processors

The quidproquo-actionprocessor-node library provides the following action processors:

  1. Date/Time Action Processors:
  • DateNowActionProcessor: Retrieves the current date and time as an ISO string.
  1. Error Action Processors:
  • ErrorThrowErrorActionProcessor: Throws a custom error with a specified type, text, and stack trace.
  1. Event Action Processors:
  • (No event-specific action processors are currently implemented)
  1. GUID Action Processors:
  • GuidNewActionProcessor: Generates a new UUID.
  1. Logging Action Processors:
  • LogCreateActionProcessor: Logs a message with a specified log level and optional data.
  1. Math Action Processors:
  • MathRandomNumberActionProcessor: Generates a random number.
  1. Network Action Processors:
  • NetworkRequestActionProcessor: Performs an HTTP request with various options (method, headers, body, etc.).
  1. Platform Action Processors:
  • PlatformDelayActionProcessor: Delays the execution for a specified number of milliseconds.
  1. System Action Processors:
  • SystemBatchActionProcessor: Executes a batch of actions and returns the results.
  1. User Directory Action Processors:
  • (No user directory-specific action processors are currently implemented)

Usage

To use the action processors provided by quidproquo-actionprocessor-node, you can import them into your quidproquo-based application and integrate them with your action processor configuration. Here's an example of how you might use the DateNowActionProcessor:

import { DateNowActionProcessor, actionResult, DateActionType } from 'quidproquo-actionprocessor-node';

const processDateNow: DateNowActionProcessor = async () => {
return actionResult(new Date().toISOString());
};

export default {
[DateActionType.Now]: processDateNow,
};

In this example, we define a DateNowActionProcessor function that returns the current date and time as an ISO string. We then export this processor under the DateActionType.Now action type, which can be used in our quidproquo-based application.

Contribution and Development

If you'd like to contribute to the development of quidproquo-actionprocessor-node, please refer to the contributing guidelines for more information.

License

quidproquo-actionprocessor-node is licensed under the MIT License.

Warning: Not for Production

This project is currently under active development and should not be used in production environments. The APIs and functionality are subject to change without notice.

0.0.191

6 days ago

0.0.190

6 days ago

0.0.189

7 days ago

0.0.188

7 days ago

0.0.187

26 days ago

0.0.186

29 days ago

0.0.185

1 month ago

0.0.184

1 month ago

0.0.183

1 month ago

0.0.182

1 month ago

0.0.181

1 month ago

0.0.179

1 month ago

0.0.178

1 month ago

0.0.180

1 month ago

0.0.175

2 months ago

0.0.177

2 months ago

0.0.176

2 months ago

0.0.174

2 months ago

0.0.173

2 months ago

0.0.172

2 months ago

0.0.171

2 months ago

0.0.170

2 months ago

0.0.169

2 months ago

0.0.168

3 months ago

0.0.164

3 months ago

0.0.167

3 months ago

0.0.166

3 months ago

0.0.165

3 months ago

0.0.163

3 months ago

0.0.162

3 months ago

0.0.161

3 months ago

0.0.160

4 months ago

0.0.159

4 months ago

0.0.158

5 months ago

0.0.153

6 months ago

0.0.152

6 months ago

0.0.151

6 months ago

0.0.150

6 months ago

0.0.157

6 months ago

0.0.156

6 months ago

0.0.155

6 months ago

0.0.154

6 months ago

0.0.149

7 months ago

0.0.148

7 months ago

0.0.147

7 months ago

0.0.142

7 months ago

0.0.141

7 months ago

0.0.146

7 months ago

0.0.145

7 months ago

0.0.144

7 months ago

0.0.143

7 months ago

0.0.139

8 months ago

0.0.138

8 months ago

0.0.137

8 months ago

0.0.136

8 months ago

0.0.140

8 months ago

0.0.106

12 months ago

0.0.105

12 months ago

0.0.104

12 months ago

0.0.103

12 months ago

0.0.109

11 months ago

0.0.108

11 months ago

0.0.107

11 months ago

0.0.102

12 months ago

0.0.101

12 months ago

0.0.117

10 months ago

0.0.116

10 months ago

0.0.115

10 months ago

0.0.114

10 months ago

0.0.119

10 months ago

0.0.118

10 months ago

0.0.113

10 months ago

0.0.112

10 months ago

0.0.111

11 months ago

0.0.110

11 months ago

0.0.128

9 months ago

0.0.127

9 months ago

0.0.126

9 months ago

0.0.125

9 months ago

0.0.129

9 months ago

0.0.120

10 months ago

0.0.124

9 months ago

0.0.123

10 months ago

0.0.122

10 months ago

0.0.121

10 months ago

0.0.131

9 months ago

0.0.130

9 months ago

0.0.135

8 months ago

0.0.134

8 months ago

0.0.133

8 months ago

0.0.132

9 months ago

0.0.95

1 year ago

0.0.96

1 year ago

0.0.97

12 months ago

0.0.98

12 months ago

0.0.99

12 months ago

0.0.91

1 year ago

0.0.92

1 year ago

0.0.100

12 months ago

0.0.93

1 year ago

0.0.94

1 year ago

0.0.84

1 year ago

0.0.40

1 year ago

0.0.85

1 year ago

0.0.41

1 year ago

0.0.86

1 year ago

0.0.42

1 year ago

0.0.87

1 year ago

0.0.43

1 year ago

0.0.88

1 year ago

0.0.44

1 year ago

0.0.89

1 year ago

0.0.45

1 year ago

0.0.46

1 year ago

0.0.47

1 year ago

0.0.80

1 year ago

0.0.81

1 year ago

0.0.82

1 year ago

0.0.83

1 year ago

0.0.37

1 year ago

0.0.38

1 year ago

0.0.39

1 year ago

0.0.73

1 year ago

0.0.74

1 year ago

0.0.75

1 year ago

0.0.31

1 year ago

0.0.76

1 year ago

0.0.32

1 year ago

0.0.77

1 year ago

0.0.33

1 year ago

0.0.78

1 year ago

0.0.34

1 year ago

0.0.79

1 year ago

0.0.35

1 year ago

0.0.36

1 year ago

0.0.70

1 year ago

0.0.71

1 year ago

0.0.72

1 year ago

0.0.62

1 year ago

0.0.63

1 year ago

0.0.64

1 year ago

0.0.65

1 year ago

0.0.66

1 year ago

0.0.67

1 year ago

0.0.68

1 year ago

0.0.69

1 year ago

0.0.60

1 year ago

0.0.61

1 year ago

0.0.59

1 year ago

0.0.51

1 year ago

0.0.52

1 year ago

0.0.53

1 year ago

0.0.54

1 year ago

0.0.55

1 year ago

0.0.56

1 year ago

0.0.57

1 year ago

0.0.58

1 year ago

0.0.90

1 year ago

0.0.50

1 year ago

0.0.48

1 year ago

0.0.49

1 year ago

0.0.30

1 year ago

0.0.29

1 year ago

0.0.28

1 year ago

0.0.27

1 year ago

0.0.26

1 year ago

0.0.25

1 year ago

0.0.24

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago