1.0.4 • Published 12 months ago

ataturk-words v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Atatürk Words

A Node.js module that generates inspiring quotes from Mustafa Kemal Atatürk. Customize the number, length, and format of quotes easily. Perfect for adding a touch of wisdom to your projects.

🚀 Installation

npm install ataturk-words

test.js

const quotes = require('ataturk-words');

const testCases = [
  {
    options: { min: 1, max: 2, quotesPerString: 1 },
    description: 'Generate 1-2 strings with 1 quote each'
  },
  {
    options: { min: 1, max: 1, quotesPerString: 2, formatter: (quote) => `**${quote}**` },
    description: 'Generate 1 string with 2 formatted quotes'
  },
  {
    options: { min: 2, max: 5, quotesPerString: 1, separator: '-', join: '\n' },
    description: 'Generate 2-5 strings with 1 quote each, joined by new lines'
  },
];

testCases.forEach((testCase, index) => {
  console.log(`Test Case ${index + 1}: ${testCase.description}`);
  console.log(quotes(testCase.options));
  console.log('---');
});
1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago