analyze-action

After you request action.yml data through axios, it will help you analyze the obtained string and get the action information.

Usage no npm install needed!

<script type="module">
  import analyzeAction from 'https://cdn.skypack.dev/analyze-action';
</script>

README

Analyze Action

After you request action.yml data through axios, it will help you analyze the obtained string and get the action information.

npm

🚀 Usage

const { analyzeActionYml } = require('analyze-action');
// or
import { analyzeActionYml } from 'analyze-action';

analyzeActionYml(data);

🎁 API

analyzeActionYml

analyzeActionYml(data, countOfficial);

Input

| Params | Desc | Type | Required | Default | | -- | -- | -- | -- | -- | | data | Oobtained string | string | ✔ | - | | countOfficial | Whether to count the official action | boolean | ✖ | true |

Output

{
  name: 'Issues Helper',
  actions: [
    owner: 'actions-cool',
    repo: 'issues-helper',
    version: 'v2.0.0'
  ]
}

LICENSE

MIT