@iamovi/printcli
v1.1.1
Published
PrintCLI is a command-line tool that allows users to quickly print code snippets in various programming languages.
Downloads
1
Readme
PrintCLI
PrintCLI is a command-line tool that allows users to quickly print code snippets in various programming languages. It supports a wide range of popular languages, making it a handy utility for developers who want to view or copy code snippets on the command line.
Installation
To install PrintCLI globally, use the following command:
npm install -g @iamovi/printcli
Usage
After installation, you can use PrintCLI by typing printcli followed by the programming language you want to print. For example:
printcli python
This will display the Python code snippet for a "Hello World!" program -
print('Hello World!')
Supported Languages
PrintCLI currently supports the following programming languages:
- Python
- JavaScript
- Java
- C
- C++
- Ruby
- Swift
- Go
- PHP
- HTML
- Brainfuck
- TypeScript
- Rust
- Kotlin
- Scala
- Groovy
- Bash
- Perl
- Lua
- C#
- Objective-C
- Swift3
- R
- MATLAB
- Perl6
Feel free to check the hello.js
file in the project for an up-to-date list of supported languages.