Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
[![npm version](https://badge.fury.io/js/badge-icon.svg)](https://badge.fury.io/js/badge-icon)
Create badge icon image
I want to set badge icon to an electron based Windows app. First of all I need to create such an icon, then invoke setOverlayIcon
of BrowserWindow
:
// todo: create the badge icon image
mainWndow.setOverlayIcon(electron.nativeImage.createFromPath('path-to-badge-icon-image'), 'badge description')
yarn add badge-icon
import BadgeIcon from 'badge-icon'
Or you include it in your web page directly:
<script src="https://unpkg.com/badge-icon@0.1.0/dist/badge-icon.js"></script>
const icon8 = new BadgeIcon({
badgeWidth: 128, // badge width
badgeHeight: 128, // badge height
text: '8', // badge text
fontSize: 96, // font size
color: 'white', // text color
bgColor: 'red' // background color
})
fs.writeFileSync('8.svg', icon8.svg())
const icon66 = new BadgeIcon({
badgeWidth: 128, // badge width
badgeHeight: 128, // badge height
text: '66', // badge text
fontSize: 64, // font size
color: 'white', // text color
bgColor: 'green' // background color
})
fs.writeFileSync('66.svg', icon66.svg())
const icon99Plus = new BadgeIcon({
badgeWidth: 128, // badge width
badgeHeight: 64, // badge height
text: '99+', // badge text
fontSize: 48, // font size
color: 'white', // text color
bgColor: 'blue' // background color
})
fs.writeFileSync('99+.svg', icon99Plus.svg())
FAQs
[![npm version](https://badge.fury.io/js/badge-icon.svg)](https://badge.fury.io/js/badge-icon)
The npm package badge-icon receives a total of 6 weekly downloads. As such, badge-icon popularity was classified as not popular.
We found that badge-icon 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.