You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

polyfer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polyfer

Post processor for Polymer CSS polyfills

0.1.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

Polyfer NPM version Build Status Dependency Status

Post-processor for Polymer CSS polyfills

Install

$ npm install --save polyfer

In a case that you are a task manager lover, please try gulp-polyfer or grunt-polyfer and have fun :)

Usage

Module

var polyfer = require('polyfer');

polyfer('::content p { color: blue; }');
// => polyfill-next-selector { content: 'p' } ::content p { color: blue; }

polyfer('x-element ::content p {...}');
// => polyfill-next-selector {...} x-element ::content

polyfer(':scoped x-element p { color: blue; }');
// => polyfill-rule { content: 'x-element p'; color: blue; }

polyfer(':unscoped x-element p');
// => polyfill-unscoped-rule {...}

// since some preprocessors do not support /deep/ selectors
polyfer('body :deep a { outline: 1; }');
// => body /deep/ a { outline: 1; }

See examples comparing fixture.css(before) with expected.css(after).

Client

$ npm install --global polyfer
$ polyfer input.css
$ polyfer input.css > output.css
$ polyfer --help

Release notes

  • 0.1.0 - refactory, bug fixes and /deep/ selectors
  • 0.0.x - first releases

Roadmap

  • 0.2.0 - enable and disable specific polyfills processing

Contribute

Keep in mind that all tasks run through Grunt.js.

git clone https://github.com/heldr/polyfer.git
cd polyfer
npm install
grunt watch

License

MIT © Helder Santana

Keywords

polyfer

FAQs

Package last updated on 30 Dec 2014

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