Skip to content

Latest commit

 

History

35 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

in-memory-of-ataturk Build status codecov NPM version Downloads License twitter

Shows a quote from Ataturk after nodejs exit.

Install

$ npm install --save-dev in-memory-of-ataturk

Usage

Basic Usage

Just add and call it in your main app:

const { app } = require('in-memory-of-ataturk');
app(); // Uses English quotes by default

Language Selection

You can specify the language (supports 'en' for English and 'tr' for Turkish):

const { app } = require('in-memory-of-ataturk');
app('tr'); // Uses Turkish quotes

Getting Random Quotes Directly

You can also use the getRandomQuote function to get quotes programmatically:

const { getRandomQuote } = require('in-memory-of-ataturk');
const quote = getRandomQuote('en'); // Get a random English quote
console.log(quote);

Error Handling

The module includes proper error handling:

try {
    app('fr'); // Will throw an error for unsupported language
} catch (error) {
    console.error(error.message); // "Unsupported language: fr. Supported languages are: en, tr"
}

Supported Languages

  • English (en)
  • Turkish (tr)

About

Shows a quote from Ataturk after nodejs exit.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages