
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
normalize.cssinjs
Advanced tools
Normalize.css in CSS-in-JS format - when you don't wan't to inject global. Uses other my library css-in-to-js.
yarn add normalize.cssinjs
OR
npm install --save normalize.cssinjs
import resets from 'normalize.cssinjs';
normalize
By default it uses CSStools Normalize.css but you can provide your selected with:
import { normalizeCssInJs } from 'normalize.cssinjs';
import cssString from '!raw-loader!normalize.css';
const resets = normalizeCssInJs({ normalize: cssString });
(or use something like babel-plugin-inline-import)
cssToString
If you wan't to get CSS-declarations in CSS-string format use:
const resets = normalizeCssInJs({ cssToString: true });
minifyCss()
Minify CSS-string
cssToJs(cssString, { cssToString: false })
Convert any CSS-string to styled-format object or object with CSS-declarations as string.
resetWithSelectors(resets)(selectors)
Return resets (CSS) for selector or array of selectors.
Uses PostCSS for parsing the CSS.
normalize.css is a project by Jonathan Neal, co-created with Nicolas Gallagher.
FAQs
Normalize.css in CSS-in-JS format
The npm package normalize.cssinjs receives a total of 2,279 weekly downloads. As such, normalize.cssinjs popularity was classified as popular.
We found that normalize.cssinjs 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 flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.