cssantique

0.2.4 • Public • Published

CSSAntique

A javascript library to emulate old browsers CSS support

js-standard-style

Work in progress

Installation

npm install cssantique

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

none

Package Sidebar

Install

npm i cssantique

Weekly Downloads

0

Version

0.2.4

License

ISC

Last publish

Collaborators

  • mmai