
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
tsimportrefiner
Advanced tools
A jscodeshift script for optimizing and sorting TypeScript imports based on path aliases defined in tsconfig.
TSImportRefiner is a powerful jscodeshift script designed to optimize and sort TypeScript imports based on path aliases defined in tsconfig.json
. It automates the refactoring of import statements, making your codebase cleaner and more maintainable.
Before | After |
![]() | ![]() |
tsconfig.json
.Before you begin, ensure you have installed Node.js and jscodeshift
:
npm install -g jscodeshift
Install TSImportRefiner globally via npm:
npm install -g tsimportrefiner
To refactor a file or a directory of files, run:
tsimportrefiner <path> [options]
Where <path>
can be a single file or a directory. [options]
are optional arguments that you would normally pass to jscodeshift
.
tsimportrefiner ./src --extensions=ts,tsx
This command will process all .ts
and .tsx
files in the src
directory.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the MIT License. See LICENSE
for more information.
Feel free to adjust the contents to fit the specifics of your project better, such as adding more detailed usage instructions, screenshots, or additional sections as necessary.
FAQs
A jscodeshift script for optimizing and sorting TypeScript imports based on path aliases defined in tsconfig.
The npm package tsimportrefiner receives a total of 8 weekly downloads. As such, tsimportrefiner popularity was classified as not popular.
We found that tsimportrefiner 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.