
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
sass-to-css-variables
Advanced tools
This plugin converts 'old' SASS/SCSS style $variable to the new var(---variableName) standard. It will read your specified file and either overwrite it or output to a new file (not currently supported when using globbing).
With npm do:
npm install sass-to-css-variables
With yarn do:
yarn add sass-to-css-variables
The package can be run from either a node script or directly in the command line. Both provide the ability to pass options to the package.
The convert
function returns a promise.
var sassToCssVars = require('sass-to-css-variables');
sassToCssVars.convert(<path to file>, <path to destination>);
Using the CLI you can specifiy the source and output files
sass-to-css-variables path/to/files.css -o path/to/output.css
or with globbing
sass-to-css-variables path/to/all/**/*.css
Note: Currently globbing only allows you to overwrite existing files
Once you've cloned the Github repository, you will need to run yarn install
to install the required dependencies to build the package. There are basic tests in test/test.js
which can be run to check that the code works as required.
Feel free to make it better :heart:
Built by @samuelthomps0n
FAQs
Convert stylesheets from $ variables to use CSS variables
The npm package sass-to-css-variables receives a total of 704 weekly downloads. As such, sass-to-css-variables popularity was classified as not popular.
We found that sass-to-css-variables 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.