Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
sass-alias is a node-sass and dart-sass importer that brings aliasing to sass.
sass-alias is a node-sass and dart-sass importer that brings aliasing to sass.
This package can be installed from npm or yarn by running one of the following commands.
npm install sass-alias
yarn add sass-alias
sass-alias brings sass the capability to import files using aliasing, this make importing more easy.
Let's imagine we have the following project structure:
project
├───components
│ └───button
│ ├───button.module.scss
│ └───button.component.js
│
└───resources
└───scss
├───colors.scss
└───utils.scss
If we want to import colors into button.module.scss the resulting path should look like this
@import '../../resources/scss/colors.scss';
/* more scss stuff... */
If we use sass-alias the resulting path could look like this
@import '@scss/colors.scss';
/* more scss stuff... */
import path from 'path';
import sass from 'sass';
import { create } from 'sass-alias';
sass.renderSync({
importer: create({
'@scss': path.join(__dirname, 'scss'),
}),
});
// webpack.config.js
const { create } = require('sass-alias');
module.exports = {
module: {
rules: [
{
test: /^.*\.(sass|scss)$/,
use: [
{
loader: 'sass-loader',
options: {
sassOptions: {
importer: create({
'@scss': path.join(__dirname, 'scss'),
}),
},
},
},
],
},
],
},
};
This project is licensed under the MIT License, see the LICENSE.md file for details
FAQs
sass-alias is a node-sass and dart-sass importer that brings aliasing to sass.
The npm package sass-alias receives a total of 0 weekly downloads. As such, sass-alias popularity was classified as not popular.
We found that sass-alias 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.