Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
postcss-travix
Advanced tools
PostCSS plugin for Travix
With npm:
$ npm install --save postcss postcss-travix
const postcss = require('postcss');
postcss([
require('postcss-travix')({ /* plugin options */ })
])
.process(YOUR_CSS, { /* process options */ })
.then(function (result) {
// console.log(result.css);
});
Options can be passed for individual processors:
postcss([
require('postcss-travix')({
autoprefixer: {
browsers: ['last 2 versions']
}
})
]);
You can also disable some plugins:
postcss([
require('postcss-travix')({
autoprefixer: {
disabled: true
}
})
]);
You can find the list of processors with their names and default options in processors.js
file.
Input:
.nested {
.selector {
.here {
padding: 0;
}
}
}
Output:
.nested .selector .here {
padding: 0;
}
Input:
:root {
--my-var: blue;
}
div {
border-color: var(--variable-defined-elsewhere);
background: var(--my-var);
}
Output:
div {
border-color: var(--variable-defined-elsewhere);
background: blue;
}
For additional reference, visit the plugin's documentation
We support compatibility with older versions of browsers, and the current list of browsers consists of:
last 2 versions
Explorer >= 10
Safari >= 5
The naming convention of the browsers follow Browserslist.
Input:
.myClass {
flex: 1;
}
Output:
.myClass {
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
MIT © Travix International
FAQs
PostCSS plugin for Travix
The npm package postcss-travix receives a total of 104 weekly downloads. As such, postcss-travix popularity was classified as not popular.
We found that postcss-travix demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.