Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wow-actions/parse-inputs

Utility method to parse action's inputs.
https://github.com/wow-actions/parse-inputs

actions util

Last synced: about 5 hours ago
JSON representation

Utility method to parse action's inputs.

Awesome Lists containing this project

README

        

# parse-inputs

Utility method to parse action's inputs

## Installation

```shell
$ npm install @wow-actions/parse-inputs --save
```

## Usage

```ts
import parseInputs from '@wow-actions/parse-inputs';

const inputs = parseInputs({
foo: { type: 'boolean' },
bar: { type: 'stringArray', required: true}
}); // => { foo: true, bar: ['Hello, Action', 'GitHub Action is cool']}
```

## License

The scripts and documentation in this project are released under the [MIT License](LICENSE).