
Security News
CISA Rebuffs Funding Concerns as CVE Foundation Draws Criticism
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
easy-jsx-parser
Advanced tools
Simple JSX tags parser that returns an easy to read object for every JSX tag
Simple JSX tags parser that returns an easy to read object for every JSX tag
$ npm i easy-jsx-parser
const jsxToObj = require('easy-jsx-parser');
jsxToObj('<Test myProp={true}>My Child</Test>');
/*=> '{
Test: {
myProp: true,
children: '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
)<Test myProp={(data)=>console.log(data)}>
: Objects with string keys and arrow functions support<Nested><Child></Child></Nested>
: Unlimited nested JSX tags supportMIT © Pablo Schaffner
FAQs
Simple JSX tags parser that returns an easy to read object for every JSX tag
The npm package easy-jsx-parser receives a total of 5 weekly downloads. As such, easy-jsx-parser popularity was classified as not popular.
We found that easy-jsx-parser 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.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.