Registry / devops / destiny

destiny

JSON →
library0.1.0jsnpmunverified

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 destiny
INSTALL
IMPORT
SIG · DESTINY
D
destiny
devopsjavascriptv0.1.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

destiny
npx destiny "src/**/*.*"
Destiny is a CLI tool, typically run via npx or global install.
destiny (programmatic API)
import destiny from 'destiny';
const destiny = require('destiny');
Package is ESM? Not confirmed; may require import syntax.
destiny (write mode)
npx destiny -w "src/**/*.*"
Use -w flag to actually restructure files; otherwise it's a dry run.

Shows how to install and run destiny for dry run and actual restructuring with common options.

// Install globally or use npx npx destiny --version // Dry run to preview restructuring npx destiny "src/**/*.ts" // Actually restructure files npx destiny -w "src/**/*.ts" // Avoid single-file folders npx destiny -S -w "src/**/*.ts" // Help npx destiny --help
destiny --version
Debug
Known issues
breakingOnly works on JavaScript/TypeScript codebases; other languages not supported.
fix
Ensure project is JS/TS before running.
affects: >=0.0.0
gotchaSnapshot tests may not format correctly after restructuring.
fix
Update snapshot tests after running destiny.
affects: >=0.0.0
gotchaAlways commit to git or back up before running with -w flag; bugs may occur.
fix
Use version control before running.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'commander'
Missing dependency when running directly via node instead of npx.
fix
Use npx destiny or install globally: npm i -g destiny
destiny: command not found
Package not installed globally.
fix
Run using npx destiny or install globally with npm i -g destiny
No files matched the pattern
Glob pattern does not match any files.
fix
Adjust the glob pattern, e.g., 'src/**/*.{ts,js,tsx,jsx}'
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies
commanderrequiredCLI argument parsing
globrequiredFile glob pattern matching
Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
destiny — npm install destiny · libregistry