New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cssantique

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssantique

Emulate old browsers CSS support

latest
Source
npmnpm
Version
0.2.4
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

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' },
  ]
}

FAQs

Package last updated on 10 Jun 2016

Did you know?

Socket

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.

Install

Related posts