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: 4 days ago
JSON representation
Utility method to parse action's inputs.
- Host: GitHub
- URL: https://github.com/wow-actions/parse-inputs
- Owner: wow-actions
- License: mit
- Created: 2022-10-26T05:54:52.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-30T02:03:17.000Z (over 2 years ago)
- Last Synced: 2025-06-05T23:36:11.691Z (about 1 month ago)
- Topics: actions, util
- Language: TypeScript
- Homepage:
- Size: 244 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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).