Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
miox-prefix-property
Advanced tools
Readme
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.
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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.