
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
postcss-scss-import-dedup
Advanced tools
PostCSS plugin to remove duplicate
@import
statements.
With yarn
$ yarn add postcss-scss-import-dedup
Or npm
:
$ npm install --save postcss-scss-import-dedup
const fs = require('fs'),
postcss = require('postcss'),
syntax = require('postcss-scss'),
dedupImports = require('postcss-scss-import-dedup')
const scss = fs.readFileSync('scss/input.scss', 'utf-8')
postcss([dedupImports()]).process(scss, {
syntax: syntax,
from: 'scss/input.scss',
})
scss/input.scss
:
@import 'a';
@import 'b';
@import 'a';
Will give you:
@import 'a';
@import 'b';
opts.filter
A function that receives a an import string and determines if it should be tracked by the deduper. This can be used as an escape valve while using this plugin.
Default:
null
Example:
dedupImports({
filter: importpath => {
return importpath == 'a'
}
})
Will dedup only @import 'a'
statements.
For more information see the scss-extractor documentation.
FAQs
PostCSS plugin to extract mixins, functions, imports
The npm package postcss-scss-import-dedup receives a total of 0 weekly downloads. As such, postcss-scss-import-dedup popularity was classified as not popular.
We found that postcss-scss-import-dedup 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.