UNPKG

@paulohenriquevn/m2js

Version:

Transform TypeScript/JavaScript code into LLM-friendly Markdown summaries + Smart Dead Code Detection + Graph-Deep Diff Analysis. Extract exported functions, classes, and JSDoc comments for better AI context with 60%+ token reduction. Intelligent dead cod

113 lines (112 loc) 3.88 kB
{ "name": "@paulohenriquevn/m2js", "version": "1.3.1", "description": "Transform TypeScript/JavaScript code into LLM-friendly Markdown summaries + Smart Dead Code Detection + Graph-Deep Diff Analysis. Extract exported functions, classes, and JSDoc comments for better AI context with 60%+ token reduction. Intelligent dead code removal with confidence levels and architectural health monitoring.", "main": "dist/index.js", "bin": { "m2js": "dist/cli.js" }, "files": [ "dist/**/*", "README.md", "LICENSE", "CHANGELOG.md" ], "engines": { "node": ">=16.0.0" }, "scripts": { "build": "tsc", "dev": "tsc --watch", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage --coverageReporters=html,lcov,text", "test:integration": "npm run build && npm link && m2js examples/User.ts --output test-integration.md && m2js tests/fixtures/dead-exports --detect-unused && m2js src/ --graph-diff --baseline HEAD~1 && echo 'Integration test passed'", "type-check": "tsc --noEmit", "lint": "eslint src tests --ext .ts", "lint:fix": "eslint src tests --ext .ts --fix", "format": "prettier --write src/**/*.ts tests/**/*.ts", "format:check": "prettier --check src/**/*.ts tests/**/*.ts", "security": "npm audit --audit-level=high", "benchmark": "npm run build && npm link && echo 'Running performance benchmarks...' && time m2js examples/User.ts --output benchmark.md && time m2js tests/fixtures/dead-exports --detect-unused && time m2js src/ --graph-diff --baseline HEAD~1", "clean": "rm -rf dist coverage *.md m2js-*.tgz", "validate": "npm run type-check && npm run lint && npm run test && npm run security", "ci": "npm run type-check && npm run test && npm run build && npm run test:integration", "prepublishOnly": "npm run type-check && npm run build", "postinstall": "echo 'm2js installed! Try: m2js --help or m2js --help-dead-code or m2js --help-graph-diff'", "release:patch": "npm version patch && git push && git push --tags", "release:minor": "npm version minor && git push && git push --tags", "release:major": "npm version major && git push && git push --tags" }, "keywords": [ "typescript", "javascript", "markdown", "llm", "ai", "chatgpt", "claude", "documentation", "cli", "ast", "babel", "parser", "code-to-markdown", "developer-tools", "documentation-generator", "token-reduction", "ai-assistant", "code-extraction", "dead-code", "dead-code-detection", "unused-code", "unused-exports", "unused-imports", "code-cleanup", "static-analysis", "confidence-levels", "risk-assessment", "performance-optimization", "caching", "smart-analysis", "graph-diff", "architectural-analysis", "health-scoring", "git-integration", "change-detection", "technical-debt", "refactoring", "dependency-analysis" ], "author": "M2JS Contributors", "license": "MIT", "homepage": "https://github.com/paulohenriquevn/m2js#readme", "repository": { "type": "git", "url": "https://github.com/paulohenriquevn/m2js.git" }, "bugs": { "url": "https://github.com/paulohenriquevn/m2js/issues" }, "devDependencies": { "@types/jest": "^30.0.0", "@types/node": "^24.0.10", "@typescript-eslint/eslint-plugin": "^8.35.1", "@typescript-eslint/parser": "^8.35.1", "eslint": "^9.30.1", "eslint-config-prettier": "^10.1.5", "eslint-plugin-prettier": "^5.5.1", "jest": "^30.0.4", "prettier": "^3.6.2", "ts-jest": "^29.4.0", "typescript": "^5.8.3" }, "dependencies": { "@babel/parser": "^7.28.0", "@babel/traverse": "^7.28.0", "@babel/types": "^7.28.0", "chalk": "^4.1.2", "commander": "^14.0.0", "jscpd": "^4.0.5" } }