Skip to content

A CLI application that allows users to generate either a random or a chosen language's greeting translation.

License

Notifications You must be signed in to change notification settings

AKP-13/greetings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm (scoped)

Multi Language Greeting App

Find out how to say 'hello' in a range of different languages.

Users can generate

  • a random language's greeting
    • greet or greet --lang
  • the greeting for a language of their choice
    • greet --lang ISO-Code

CLI Interface

Installation & Usage

Global Installation

  • npm i -g @akp-13/greetings
  • This will allow you to then run greet and generate a random language's greeting translation from anywhere in you terminal

Local Installation

  • npm i @akp-13/greetings
  • To use locally, you will need to add in scripts into the package.json.
  •         {
                "scripts": {
                    "greet-es": "greet --lang es"
                }
            }
    Will allow you to run npm run greet-es in the terminal and recieve Hola!

Usage within other apps

const greetings = require("@akp-13/greetings");

const sp = greetings.greet("es");

console.log(sp);
// -> Hola!

Supported Languages

More coming soon!

Language ISO-Code
Croatian hr
Czech cs
Danish da
Dutch nl
English en
Estonian et
Finnish fi
French fr
German de
Hungarian hu
Icelandic is
Italian it
Lithuanian lt
Portuguese pt
Spanish es
Swedish sv
Turkish tr

Aknowledgements

About

A CLI application that allows users to generate either a random or a chosen language's greeting translation.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published