https://github.com/actions-cool/actions-util
🚀 A util for Actions.
https://github.com/actions-cool/actions-util
actions github-actions util
Last synced: 2 months ago
JSON representation
🚀 A util for Actions.
- Host: GitHub
- URL: https://github.com/actions-cool/actions-util
- Owner: actions-cool
- License: mit
- Created: 2021-02-21T05:54:56.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-02-18T03:23:27.000Z (almost 2 years ago)
- Last Synced: 2025-09-15T10:00:23.961Z (3 months ago)
- Topics: actions, github-actions, util
- Language: TypeScript
- Homepage:
- Size: 17.6 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Actions Util
🚀 A util for Actions.
[](https://www.npmjs.com/package/actions-util)


## 🚀 Usage
```js
const { checkPermission } = require('actions-util');
// or
import { checkPermission } from 'actions-util';
checkPermission(require, permission);
```
## 🎁 Export
- [checkPermission](#checkPermission) `1.0.0`
- [dealStringToArr](#dealstringtoarr) `1.0.0`
- THANKS `1.1.0`
### checkPermission
```js
checkPermission(require, permission);
```
#### Input
| Params | Desc | Type | Required | Default |
| -- | -- | -- | -- | -- |
| require | Required permissions | string | ✔ | - |
| permission | Detector's permission | string | ✔ | - |
#### Output
`boolean`
### dealStringToArr
```js
dealStringToArr(para);
```
#### Input
| Params | Desc | Type | Required | Default |
| -- | -- | -- | -- | -- |
| para | Action yml input like `x1, x2, x3` | string | ✔ | - |
#### Output
```js
['x1', 'x2', 'x3']
```
## LICENSE
[MIT](./LICENSE)