JSPM

preflex

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q37962F
  • License MIT

Dynamically add vendor flexbox prefixes to CSS style dictionaries

Package Exports

  • preflex

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (preflex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

preflex Build Status

Dynamically add vendor flexbox prefixes to CSS style dictionaries

Install

$ npm install --save preflex

Usage

// In Safari
var prefix = require('preflex')

prefix({flex: 1})
//=> {flex: 1, webkitFlex: 1}

prefix({display: 'flex'})
//=> {display: '-webkit-flex'}

API

prefix(obj) -> object

Returns a copy of the original object with both the standard flexbox property and the prefixed version.

obj

Required
Type: object

An object containing CSS style properties. Keys should be camel cased, e.g. flex-direction should be flexDirection.

License

MIT © Ben Drucker