Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
miox-prefix-property
Advanced tools
An in-browser vendor prefixer that doesn't suck.
Simple usage:
import prefix from 'prefix-property';
// or
const prefix = window.prefixProperty;
// in chrome:
prefix('fontFeatureSettings'); // => 'WebkitFontFeatureSettings'
prefix.css('fontFeatureSettings'); // => '-webkit-font-feature-settings'
Advanced usage:
import { js, css, jsPrefix, cssPrefix } from 'prefix-property';
// in chrome:
js('fontFeatureSettings'); // => 'WebkitFontFeatureSettings'
js('font-feature-settings'); // => 'WebkitFontFeatureSettings'
css('fontFeatureSettings'); // => '-webkit-font-feature-settings'
css('font-feature-settings'); // => '-webkit-font-feature-settings'
// browser's prefix:
jsPrefix(); // => 'Webkit'
cssPrefix(); // => '-webkit-'
// non-prefixed properties:
js('color'); // => 'color'
js('background-color'); // => 'backgroundColor'
The default output of prefixProperty()
is a JS-friendly prop (ex: WebkitTransformOriginX
).
To get a CSS-friendly prop, use prefixProperty.css()
(ex: -webkit-transform-origin-x
).
npm i prefix-property --save
or add /dist/prefix-property.min.js
to your html.
Clone repo, cd into it, then
npm install && npm run build && npm test
npm run build
Run the tests on your browser here.
npm test
For live retesting:
npm run test-watch
Browser:
npm run build && open test/test.html
Node:
npm run test-node
npm run lint
MIT
FAQs
Vendor-prefix any property.
The npm package miox-prefix-property receives a total of 1 weekly downloads. As such, miox-prefix-property popularity was classified as not popular.
We found that miox-prefix-property 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.