UNPKG

issuesync

Version:

A library and CLI tool for listing and synchronizing issues between GitHub repositories

127 lines (94 loc) • 3.2 kB
# IssueSync - Package Ready for Publication ## āœ… Validation Complete The IssueSync package has been successfully restructured and is now ready for publication to npm. All tests pass and the package meets npm publishing standards. ## šŸ“¦ Package Information - **Name**: `issuesync` - **Version**: `1.0.0` - **Type**: Dual-purpose library and CLI tool - **License**: MIT - **Author**: kybaloo ## šŸš€ Ready Features ### Library API - `init(config)` - Initialize with GitHub authentication - `listIssues(options)` - List issues from repositories - `syncIssues(options)` - Synchronize issues between repositories ### CLI Tool - `issuesync list` - List repository issues - `issuesync sync` - Synchronize issues between repositories - Global installation support via npm ## šŸ“ Package Structure ``` issuesync/ ā”œā”€ā”€ lib/ # Library core │ ā”œā”€ā”€ index.js # Main library entry point │ ā”œā”€ā”€ index.d.ts # TypeScript definitions │ ā”œā”€ā”€ github.js # GitHub authentication │ └── services/ │ ā”œā”€ā”€ issueService.js │ └── syncService.js ā”œā”€ā”€ cli.js # CLI entry point ā”œā”€ā”€ examples/ # Integration examples ā”œā”€ā”€ docs/ # Documentation ā”œā”€ā”€ package.json # Package configuration ā”œā”€ā”€ README.md # Documentation ā”œā”€ā”€ LICENSE # MIT License └── .npmignore # Publication exclusions ``` ## šŸ”§ Integration Examples Available 1. **Web Application** (Express.js integration) 2. **Custom CLI Tools** (Building on top of IssueSync) 3. **CI/CD Automation** (GitHub Actions, Jenkins) 4. **VS Code Extensions** (Including Copilot integration) ## šŸ“‹ Publication Steps To publish to npm: ```bash # 1. Login to npm npm login # 2. Publish the package npm publish ``` ## šŸ›  Installation Methods After publication, users can install via: ```bash # Global CLI installation npm install -g issuesync # Project dependency npm install issuesync # Yarn yarn add issuesync ``` ## ✨ Usage Examples ### CLI Usage ```bash # List issues issuesync list --owner microsoft --repo vscode --state open # Sync issues issuesync sync --source-owner org1 --source-repo repo1 --target-owner org2 --target-repo repo2 ``` ### Library Usage ```javascript const issueSync = require('issuesync'); await issueSync.init({ token: process.env.GITHUB_TOKEN }); const issues = await issueSync.listIssues({ owner: 'microsoft', repo: 'vscode', state: 'open' }); ``` ## šŸŽÆ Multi-Platform Compatibility - āœ… Node.js 14+ - āœ… CommonJS modules - āœ… TypeScript support - āœ… Cross-platform CLI (Windows, macOS, Linux) - āœ… Integration-ready for various contexts ## šŸ“ˆ Next Steps The package is production-ready and can be: 1. Published to npm registry 2. Integrated into various projects 3. Extended with additional features 4. Used as a foundation for GitHub automation tools --- **Status**: āœ… READY FOR PUBLICATION **Last Validated**: June 9, 2025