New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@hypermod/mod-react

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hypermod/mod-react

latest
Source
npmnpm
Version
0.4.2
Version published
Maintainers
1
Created
Source

sort-jsx-props

Sort props of JSX Components alphabetically.

Credit: https://github.com/reactjs/react-codemod

/* INPUT */
<Music
  zootWoman={true}
  rickJames={true}
  zapp={true}
/>

/* OUTPUT */
<Music
  rickJames={true}
  zapp={true}
  zootWoman={true}
/>

If a component uses spread props all properties before and after will be sorted, leaving the spread operation in place.

/* INPUT */
<Music
  zootWoman={true}
  alpha
  {...foo}
  zapp={true}
  rickJames={true}
/>

/* OUTPUT */
<Music
  alpha
  zootWoman={true}
  {...foo}
  rickJames={true}
  zapp={true}
/>

FAQs

Package last updated on 16 Jul 2025

Did you know?

Socket

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.

Install

Related posts