Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
phy-emotion
Advanced tools
All-in-JS templating engine for you to write everything in JavaScript. No more HTML. No more CSS. Only JS!
phy-emotion
All-in-JS template engine for you to write everything in JavaScript. No more HTML. No more CSS. Only JavaScript!
phy-emotion depends on Emotion CSS-in-JS styling engine.
This project is a fork of phy minimal hyperscript helpers. It allows you to use minimalist h
helper function to create React/Preact elements. With phy-emotion, the css
prop gets parsed by Emotion, so you can write everything in JS!
To quickly get started with phy-emotion, feel free to clone the starters:
phy-emotion-next-starter
: Starter for Next.jsphy-emotion-gatsby-starter
: Starter for GatsbyTo style an element, simply pass css
prop:
const h = require('phy-emotion');
module.exports = function SomeComponent() {
return h('#foo', h('span.bar', { css: { color: 'red' } }, 'whee!'));
};
You can create elements without any props, same as phy
.
const h = require('phy-emotion');
module.exports = function SomeComponent() {
return h('#foo', h('span.bar', 'whee!'));
};
phy-emotion
is a fork of phy
which is under BSD-3-Clause license.
FAQs
All-in-JS templating engine for you to write everything in JavaScript. No more HTML. No more CSS. Only JS!
The npm package phy-emotion receives a total of 0 weekly downloads. As such, phy-emotion popularity was classified as not popular.
We found that phy-emotion 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.