
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
A simple Node.js module for generating Slack-like profile icons
![]()
Install npm install slackicons
Import const slackicons = require('slackicons')
The generate method generates an image, taking an optional random seed and image size.
const fs = require('fs');
const slackicons = require('slackicons');
const options = {
seed: 'slackicons', // Optional, specifies start seed for RNG
size: 1000 // Optional, specifies output image width and height in pixels (default: 1000)
};
slackicons.generate(options).then((buffer) => {
// Buffer MIME type is image/png
fs.writeFileSync('./output.png', buffer);
}).catch((err) => {
console.error(`Error: ${err}`);
});
NOTE: A size of 500 or greater is recommended until some sort of anti aliasing is added.
slackicons uses Babel to build. Install the latest version of Node.js
npm install
npm run build
The build script transpiles all files in /src and outputs them in /dist
Mocha tests are located in /test
Chai is used for assertion, and nyc is used for code coverage.
npm install
npm test
Feel free to fork and PR! I only ask that you follow the ESLint rules set in .eslintrc.js.
PRs with ESLint errors will not be accepted.
Make sure to add any Mocha tests for new features!
FAQs
A module to generate images similar to Slack profile icons
We found that slackicons demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.