
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@sillybit/colorhacks
Advanced tools
Colorhacks is a collection of color conversion and manipulation utilities for TypeScript.
npm install @sillybit/colorhacks
yarn add @sillybit/colorhacks
pnpm add @sillybit/colorhacks
bun add @sillybit/colorhacks
import { getColorNameFromHex } from '@sillybit/colorhacks';
getColorNameFromHex('#FF0000');
// returns { hexcode: '#ff0000', colorName: 'Red', isExactMatch: true, shadeHex: '#ff0000', shadeName: 'Red', distance: 0 }
import { generateTheme } from '@sillybit/colorhacks';
generateTheme({
baseColor: '#FF0000',
expandPalette: true,
colorScheme: 'complementary',
infoHue: 200,
successHue: 120,
warningHue: 40,
errorHue: 0,
});
// returns { brand: { ... }, primary: { ... }, secondary: { ... }, accent: { ... }, neutral: { ... }, info: { ... }, success: { ... }, warning: { ... }, error: { ... }, schemeColors: [ ... ] }
For more examples and API details, see the docs.
You can use this under the MIT license. See the LICENSE file for more details.
We welcome contributions to this project. Please read our CONTRIBUTING.md file for more details.
FAQs
A collection of color utility functions
The npm package @sillybit/colorhacks receives a total of 16 weekly downloads. As such, @sillybit/colorhacks popularity was classified as not popular.
We found that @sillybit/colorhacks 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.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.