Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/wow-actions/parse-inputs
- Owner: wow-actions
- License: mit
- Created: 2022-10-26T05:54:52.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-30T02:03:17.000Z (almost 2 years ago)
- Last Synced: 2024-09-29T23:12:21.959Z (about 2 months 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).