
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
import-sorter
Advanced tools
An opinionated ES6 and TypeScript import sorter.
TODO:
dom in lib?yarn installyarn watch (will block one terminal tab)tsc./node_modules/.bin/ts-node ./bin/index.jsyarn build:prod for a production buildyarn link. Then, in the other project run yarn link import-sorter. After this, you will be able toimport { sortImports } from 'import-sorter';
const result = sortImports(...);
After testing, make sure to unlink import-sorter, by navigating to it and yarn unlink
cliSort function in src/cli/index.ts with a desired configuration, i.e.:cliSort({
content: '',
dryRun: true,
verbose: true
});
Note - in this way, the configuration binding is being skipped, and it can't be relied on the default value. Thus, all desired configuration value have to be explicitly specified.
launch.json and launch the Launch Program configurationfiles argument, which can be an array of either directories or files. If it's a file, run the lib on it. If it's a directory, run the lib on the files inside it. Optionally, if recursive flag is up, continue to iterate through directories recursevlyFAQs
An opinionated ES6 and TypeScript import sorter.
The npm package import-sorter receives a total of 4 weekly downloads. As such, import-sorter popularity was classified as not popular.
We found that import-sorter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.