cssantique
0.2.4 • Public • Published CSSAntique
A javascript library to emulate old browsers CSS support
Work in progress
Installation
In browser usage
<script src="cssantique-browser.js"></script>
<script>
var params = {
browser: {name: 'Firefox', version: '3'}
}
CSSAntique.filterStyles(params, function(res){
console.log(res.discarded)
})
</script>
Developping in node.js with Webpack
import { filterStyles } from 'cssantique'
filterStyles({ browser: {name: 'Firefox', version: '3'} }, function(res){
...
})
You need to configure json loader in webpack to load the database
module: {
loaders: [
{ test: /\.json/, loader: 'json-loader' },
]
}
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads