
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
babel-plugin-transform-rax-styles
Advanced tools
This Babel transoformation auto-generates Rax StyleSheets from import statements of CSS files at compile time.
When used in the test environment(e.g jest, mocha), which usually only depend on Babel instead of Webpack,we need the suitable plugin。Since offical Rax only provide Webpack loader stylesheet-loader,but lack of version for Babel plugin,so I create this Babel plugin。This plugin is inspired by babel-plugin-transform-styles。
For example, given the following CSS file
.container {
flex: 1;
justify-content: center;
align-items: center;
background-color: #F5FCFF;
margin: 10 5;
}
when imported as follows
import styles from '../styles.css';
<Container style={styles.container} />
will be transformed to
var styles = {
"container": {
"flex": 1,
"justifyContent": "center",
"alignItems": "center",
"backgroundColor": "rgb(245,252,255)",
"marginTop": "10rem",
"marginRight": "5rem",
"marginBottom": "10rem",
"marginLeft": "5rem"
}
};
Babel v6 or higher.
$ npm install babel-plugin-transform-rax-styles
.babelrc
.babelrc
{
"plugins": ["transform-rax-styles"]
}
require('babel-core').transform('code', {
plugins: ['transform-rax-styles']
});
Contributions are very welcome—bug fixes, features, documentation, tests. Just make sure the tests are passing.
FAQs
Unknown package
The npm package babel-plugin-transform-rax-styles receives a total of 0 weekly downloads. As such, babel-plugin-transform-rax-styles popularity was classified as not popular.
We found that babel-plugin-transform-rax-styles 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
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.