
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
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 0 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.