Socket
Socket
Sign inDemoInstall

prefix

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prefix

prefix a css attribute


Version published
Weekly downloads
6.4K
increased by2.74%
Maintainers
1
Weekly downloads
 
Created
Source

prefix

add a vendor prefix to a css attribute

Installation

With packin or component

$ packin add jkroso/prefix

then in your app:

var prefix = require('prefix')

API

prefix(key)

Prefix key. This function memoizes its results so you don't need to worry about any performance issues, just treat it like a map.

prefix('transform') // => webkitTransform
prefix('color') // => color

dash(key)

create a dasherize version of a vendor prefix

prefix.dash('transform') // => -webkit-transform
prefix.dash('color') // => color

Running the tests

Just run make and navigate your browser to the test directory.

Keywords

FAQs

Package last updated on 09 Jan 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

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