@xyz/newsletter
v1.0.2
Published
A terminal-based newsletter reader
Maintainers
Readme
Newsletter CLI
A beautiful terminal-based newsletter reader that allows you to read and manage your newsletter issues directly from the command line.
Installation
Using npm
npm install -g @xyz/newsletterFrom source
- Clone this repository:
git clone https://github.com/xyzhub/newsletter-client.git
cd newsletter-client- Install dependencies:
npm install- Install globally:
npm install -g .Usage
After installation, you can use the following commands:
List all issues
newsletter listRead a specific issue
newsletter read <number>Read the latest issue
newsletter latestCreate a new issue
newsletter newFeatures
- Beautiful terminal formatting with colors and styling
- Easy navigation through issues
- Markdown support with proper formatting
- Automatic issue numbering
- Template-based issue creation
Troubleshooting
If you encounter any issues with the newsletter command, try these solutions:
Command Not Found
If you get a "command not found" error after installation:
- Check if npm's global bin directory is in your PATH:
echo $PATH- Find npm's global bin directory:
npm config get prefix- Add the global bin directory to your PATH:
For Bash/Zsh (add to ~/.bashrc or ~/.zshrc):
export PATH="$(npm config get prefix)/bin:$PATH"For Windows (PowerShell):
$env:Path += ";$(npm config get prefix)\bin"- Reload your shell configuration:
source ~/.bashrc # or source ~/.zshrcPermission Issues
If you get permission errors:
- Try installing with sudo (Unix/Mac):
sudo npm install -g @xyz/newsletter- Or fix npm permissions:
sudo chown -R $USER:$(id -gn $USER) $(npm config get prefix)/{lib/node_modules,bin,share}Node.js Version
Ensure you have Node.js version 14 or higher:
node --versionIf your version is lower, update Node.js from nodejs.org.
Manual Installation
If automatic installation fails:
- Install the package locally:
npm install @xyz/newsletter- Run it using npx:
npx newsletter <command>Directory Structure
issues/- Directory containing all newsletter issues in markdown formatbin/index.js- Main CLI applicationpackage.json- Project configuration and dependencies
Contributing
Feel free to submit issues and enhancement requests!
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
If you find this project helpful, please give it a star on GitHub!
If you encounter any issues not covered in the troubleshooting guide, please:
- Check the GitHub Issues
- Create a new issue if your problem isn't already reported
- Include your operating system, Node.js version, and the exact error message
