Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
inferno-vnode-flags
Advanced tools
Provides an enum of all possible VNode Flags used when calling Inferno.createVNode
Inferno VNode Flags is a small utility library for Inferno.
Usage of inferno-vnode-flags
should be limited to assigning VNodeFlags
when using Inferno.createVNode
.
npm install --save inferno-vnode-flags
VNodeFlags.Text
VNodeFlags.HtmlElement
VNodeFlags.ComponentClass
VNodeFlags.ComponentFunction
VNodeFlags.ComponentUnknown
VNodeFlags.HasKeyedChildren
VNodeFlags.HasNonKeyedChildren
VNodeFlags.SvgElement
VNodeFlags.MediaElement
VNodeFlags.InputElement
VNodeFlags.TextareaElement
VNodeFlags.SelectElement
VNodeFlags.Void
You can easily combine multiple flags, by using bitwise operators. A common use case is an element that has keyed children:
const flag = VNodeFlags.HtmlElement | VNodeFlags.HasKeyedChildren;
import Inferno from 'inferno';
import VNodeFlags from 'inferno-vnode-flags';
const vNode = Inferno.createVNode(VNodeFlags.Element, 'div', { className: 'example' }, 'Hello world!');
Inferno.render(vNode, container);
FAQs
Provides an enum of all possible VNode Flags used when calling Inferno.createVNode
The npm package inferno-vnode-flags receives a total of 123,170 weekly downloads. As such, inferno-vnode-flags popularity was classified as popular.
We found that inferno-vnode-flags demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.