
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).
postcss-easy-import
Advanced tools
PostCSS plugin to inline @import rules content with extra features
PostCSS plugin to inline @import rules content with extra features.
postcss([ require('postcss-easy-import') ])
See PostCSS docs for examples for your environment.
The path to the file will be checked and if it contains a glob it will be used to locate it. These can be mixed and matched with normal module paths:
@import "suitcss-utils-display"; /* node_modules */
@import "./theme.css"; /* relative path */
@import "./components/*.css"; /* glob */
@import "suitcss-utils-size/lib/*.css"; /* glob inside node_modules */
This plugin is a postcss-import extension which introduces its own resolve
option.
prefix
Type: false
or string
Default: false
Allows partial-like importing with a prefix before the filename.
@import 'modules/partial.css';
/* will import modules/_partial.css */
Prefixed versions are always favoured. Otherwise the non-prefix version is used:
├── _baz.css
├── baz.css
├── bar.css
The matched files would be ['_baz.css', 'bar.css']
.
extensions
Type: array
or string
Default: .css
Defines file extensions which will be looked for.
MIT © Bogdan Chadkin
4.0.0
postcss
to ^8.4.0
(major)postcss-import
to ^14.0.0
(major)>=10.0.0
(major)FAQs
PostCSS plugin to inline @import rules content with extra features
The npm package postcss-easy-import receives a total of 17,971 weekly downloads. As such, postcss-easy-import popularity was classified as popular.
We found that postcss-easy-import demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.