
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
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 36 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.