
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
merge-style-modules
Advanced tools
A package that merge style modules
yarn add merge-style-modules
Sometimes you want to use more than one file with SASS/CSS modules like that:
/* @styles/default.modules.scss */
.container {
background-color: red;
}
/* @styles/component.modules.scss */
.container {
display: flex;
justify-content: center;
align-items: center;
}
import defaultStyle from "@styles/default.modules.scss";
import componentStyle from "@styles/component.modules.scss";
import { useMemo } from "react";
const Component = () => {
// You can't just merge these objects because of property conflicts
const styles = useMemo(() => ({ ...defaultStyle, ...componentStyle }), []);
return <div className={styles.container}>test</div>;
};
So I've created this package :)
Now you just have to do that:
import defaultStyle from "@styles/default.modules.scss";
import componentStyle from "@styles/component.modules.scss";
import { mergeStyles } from "merge-style-modules";
import { useMemo } from "react";
const Component = () => {
const styles = useMemo(() => mergeStyles(defaultStyle, componentStyle), []);
return <div className={styles.container}>test</div>;
};
👤 edusantosbrito
Give a ⭐️ if this project helped you!
Copyright © 2020 edusantosbrito.
This project is ISC licensed.
This README was generated with ❤️ by readme-md-generator
FAQs
A package that merge style modules
The npm package merge-style-modules receives a total of 0 weekly downloads. As such, merge-style-modules popularity was classified as not popular.
We found that merge-style-modules 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.