Socket
Socket
Sign inDemoInstall

j2c-plugin-prefix-browser

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

j2c-plugin-prefix-browser

Vendor prefix handling for j2c in the browser, built on top of Lea Verou's PrefixFree


Version published
Weekly downloads
8
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

j2c-filter-prefix-browser

This j2c plugin adds client side automatic vendor prefix insertion on the client to j2c.

It is based on Lea Verou's PrefixFree and it can thus prefix properties, values, at-rules and selectors as needed.

Unlike Autoprefixer and the Inline Style Prefixer, it relies on feature detection rather than browser sniffing and it has thus a much larger compatibility. It weights ~3KB minified and gzipped.

You can get a (non-live) sample of its work here.

Usage:

var J2c = require("j2c")
var j2c = J2c(require("j2c-plugin-prefix-browser"))

// Suppose that this will run in an old Safari version:

j2c.sheet({"@keyframes foo": {
  from:{size: "100px"}, to:{size: "200px"}
}})

/* output:
@-webkit-keyframes foo_j2c-xxx {
  from {
    size: 100px;
  }
  to {
    size: 200px;
  }
} 
*/

Keywords

FAQs

Package last updated on 11 Jan 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc