readme-package-icons
v1.1.16
Published
[![Open in Visual Studio Code](https://img.shields.io/static/v1?logo=visualstudiocode&label=&message=Open%20in%20Visual%20Studio%20Code&labelColor=2c2c32&color=007acc&logoColor=007acc)](https://github.dev/jpb06/readme-package-icons) ![npm bundle size](htt
Downloads
1,347
Readme
readme-package-icons
Generating a list of icons from dependencies.
Blabla
Our icons list will be inserted between these two tags.
#### 🌀 Cli
One way to use this package is to use its executable. The `generateReadmeIcons` function takes two optional arguments:
| name | description | Example | Default |
| ---- | -------------------- | -------- | ------- |
| p | The path to the repo | ./myRepo | . |
| h | Height of the icons | 100 | 50 |
##### 🍥 Within a package
We could add a script to our package.json for example:
```json
{
"scripts": {
"readme-icons": "generateReadmeIcons"
}
}
🍥 Globally
We can also install the package globally:
npm install -g readme-package-icons
Then we can use it by using the -p
option:
npm run generateReadmeIcons -p /Users/jpb06/repos/myRepo
🌀 node
This package exposes the function as well:
import { generateReadmeIcons } from 'readme-package-icons';
(async (): Promise<void> => {
const path = './path/to/my/repo';
const iconsHeight = 50;
const iconsAddedToReadmeCount = await generateReadmeIcons({
path,
iconsHeight,
});
})();
⚡ Thanks
This module uses some icons from devicons. Thanks for their great work!