Destiny v0.7.1 is a CLI tool that reorganizes JavaScript/TypeScript project file structures into a fractal pattern based on import dependencies. It scans files, builds a directed graph of imports, and restructures folders while fixing import paths. Last released in August 2020, the project appears stable but has no recent activity. It differentiates from other file organizing tools by using actual code dependency analysis rather than naming conventions, though the author notes the approach may be limited.
npm install destinyVerified import paths — ran on the pinned version, not inferred.
Shows how to install and run destiny for dry run and actual restructuring with common options.
Ensure project is JS/TS before running.
Update snapshot tests after running destiny.
Use version control before running.
Use npx destiny or install globally: npm i -g destiny
Run using npx destiny or install globally with npm i -g destiny
Adjust the glob pattern, e.g., 'src/**/*.{ts,js,tsx,jsx}'