
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
simplified-jsx-to-json
Advanced tools
Converts basic JSX code into a JSON representation, which can be used by React.createElement
Converts simplified JSX code into a JSON representation, which can be used by
React.createElement
$ npm install simplified-jsx-to-json
const jsxToJson = require('simplified-jsx-to-json');
jsxToJson('<Test myProp={true}>My Child</Test>');
//=> '[ [ 'Test', { myProp: true }, "My Child" ] ]'
<Test />: Self-closing JSX tags<Test myProp="string">: String props<Test myProp={`string`}>: Template props<Test myProp>: True props<Test myProp={false}>: Boolean props<Test myProp={34}>: Number props<Test myProp={3 + 3 + 3}>: Props with arithmetic, comparison or bitwise operators<Test myProp={['Test', true, 34]}>: Arrays (with strings, numbers or booleans)<Test myProp={{ test: 34 }}>: Objects with string keys and string, number or boolean value<>Test</>: Fragmentsclass -> className)MIT © Dennis Morhardt
FAQs
Converts basic JSX code into a JSON representation, which can be used by React.createElement
The npm package simplified-jsx-to-json receives a total of 32 weekly downloads. As such, simplified-jsx-to-json popularity was classified as not popular.
We found that simplified-jsx-to-json 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.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.