github-tools / github-tools/github
How to require a single class
Offen
- Vorherrschende Sprache
- JavaScript
- Sterne
- 3.8k
- Forks
- 809
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hello,
Thank you very much for this library, it has worked very well.
However, for some projects I don't need all the features it provides.
For example, for a small script I wrote, all I need is the Issue class. There is no documentation about how to require a particular class/component. It would be ideal also to be able to independently install the required parts.
I ended doing this:
```js
const Issue = require( 'github-api/dist/components/Issue' );
```
If there is a better approach I would love to know about it.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.