Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
prefix-style
Advanced tools
For a camel case string like "transform"
or "transformStyle"
, returns the prefixed version like "MozTransformStyle"
(if necessary). Returns false
if the style is unsupported.
var camel = require('to-camel-case')
var prefix = require('prefix-style')
var key = prefix(camel('transform-style'))
if (key)
element.style[key] = 'preserve-3d'
Original implementation by Paul Irish, with some modifications by me.
prefix(prop)
Prefixes prop
, a camel case string like transformStyle
or fontSmoothing
. Returns the prefixed camel case version (or unprefixed if the browser supports it). Returns false
if the browser doesn't support it.
Implementation by Paul Irish.
Redistributed under MIT, see LICENSE.md for details.
FAQs
gets a prefixed name for a css style
The npm package prefix-style receives a total of 224,658 weekly downloads. As such, prefix-style popularity was classified as popular.
We found that prefix-style demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.