Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
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 96,154 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.