Code Monkey home page Code Monkey logo

thaana-faker's Introduction

Thaana Faker

Thaana Faker is a simple package that generates random Thaana language text for testing and development purposes.

Installation

npm i Iyaaan/thaana-faker

Usage

import {
    word,
    words,
    sentence,
    sentences,
    paragraph,
    paragraphs
} from 'thaana-faker';

// Example usage
const randomWord = word();
const randomSentence = sentence(5);
const randomParagraph = paragraph(3, 5);

console.log(randomWord);
console.log(randomSentence);
console.log(randomParagraph);

API

word(): string

Generates a random Thaana word.

words(count: number): string

Generates a string of random Thaana words, separated by spaces.

sentence(sentenceLength: number): string

Generates a random Thaana sentence of the specified length.

sentences(count: number, sentenceLength: number): string

Generates a string of random Thaana sentences, separated by spaces.

paragraph(paragraphLength: number, sentenceLength: number): string

Generates a random Thaana paragraph containing a specified number of sentences.

paragraphs(count: number, paragraphLength: number, sentenceLength: number): string

Generates a string of random Thaana paragraphs, separated by two newlines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

This library is inspired by Dhivehi Faker. Special thanks to the contributors of the original project.

thaana-faker's People

Contributors

hassaniyan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.