1.0.45 • Published 10 months ago

@rainbow-o23/n4 v1.0.45

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Static Badge

Module Formats

o23/n4

o23/n4 provides the ability to read pipeline and pipeline step configurations, currently supporting the YAML format. While reading the configuration, o23/n4 simplifies the notation of certain properties and also adds some related validation and script parsing supplements, as follows:

  • For single-line snippet, a prefix return will be automatically added to ensure that data can be returned,
  • Automatic conversion between camel case and kebab case property names,
  • If a property value starts with env:, it will be automatically replaced with the corresponding environment variable value,
  • The prefix env: supports multiple environment variables, separated by commas, with the first one having a value taking precedence.

When writing YAML configurations, the following syntax rules should also be noted:

  • null string value will be recognized as a null value. If you need to return a null value, you can write it as "null" or return null,
  • Property values that conform to JSON syntax will be automatically parsed. Therefore, if a value needs to be treated as a snippet, it should be enclosed in double quotation marks (""). For example, {name: $factor.name} can be written as "{name: $factor.name}",
  • Sometimes, we don't want the return prefix to be automatically added before a single-line snippet. In this case, we can use the vertical line | syntax to avoid this problem. For example, consider this:

    snippet: $factor.enabled = true

    If it is written in this way, the return value is true. We can instead write it as following:

    snippet: |
      $factor.enabled = true

You can find all relevant YAML configuration examples in the server/02-api-test folder of o23/n99. Since the property names are self-explanatory, we will not explain the purpose of each property in the following section. You can refer to the documentation of o23/n3 for this part.

1.0.45

10 months ago

1.0.44

11 months ago

1.0.37

1 year ago

1.0.39

12 months ago

1.0.38

12 months ago

1.0.40

12 months ago

1.0.43

11 months ago

1.0.42

11 months ago

1.0.41

11 months ago

1.0.36

1 year ago

1.0.33

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

0.1.21

1 year ago

0.1.21-alpha.2

1 year ago

0.1.21-alpha.1

1 year ago

0.1.20

1 year ago

0.1.19

1 year ago

0.1.16

1 year ago

0.1.17

1 year ago

0.1.18

1 year ago

0.1.15

1 year ago

0.1.10

1 year ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.14

1 year ago

0.1.9

1 year ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.2-alpha.3

2 years ago

0.1.2-alpha.2

2 years ago

0.1.2-alpha

2 years ago

0.1.1

2 years ago