https://github.com/actions-cool/actions-util
🚀 A util for Actions.
https://github.com/actions-cool/actions-util
actions github-actions util
Last synced: 3 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 (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-18T03:23:27.000Z (over 1 year ago)
- Last Synced: 2025-03-24T05:25:35.804Z (4 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)