Socket
Book a DemoInstallSign in
Socket

autoprefix

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autoprefix

Adds vendor prefixes to an object of styles through autoprefixer

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
3.4K
9.74%
Maintainers
1
Weekly downloads
 
Created
Source

autoprefix

Adds vendor prefixes to an object of styles through autoprefixer.

Works best in combination with react-autoprefix babel plugin to auto prefix your inline styles at compilation time :).

Build Status

Installation

$ npm install autoprefix

Usage

require('autoprefix')({
  alignItems: 'center',
  background: 'linear-gradient(350.5deg, white, black), linear-gradient(-130deg, black, white), linear-gradient(45deg, black, white)'
});

// =>
//
// {
//   webkitBoxAlign: 'center',
//   webkitAlignItems: 'center',
//   msFlexAlign: 'center',
//   alignItems: 'center',
//   background: ['-webkit-linear-gradient(99.5deg, white, black), -webkit-linear-gradient(220deg, black, white), -webkit-linear-gradient(45deg, black, white)', 'linear-gradient(350.5deg, white, black), linear-gradient(-130deg, black, white), linear-gradient(45deg, black, white)']
// }

Initially inspired by react-css.

Locked to a synchronous version of autoprefixer to allow for the babel plugin for react.

Keywords

auto

FAQs

Package last updated on 30 Sep 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.