Skip to content

astrojose/swahili

This branch is up to date with alphaolomi/swahili:main.

Folders and files

NameName
Last commit message
Last commit date
Apr 14, 2021
Apr 14, 2021
Apr 14, 2021
Apr 14, 2021
Oct 19, 2019
Oct 19, 2019
Oct 19, 2019
Apr 14, 2021
Oct 19, 2019
Apr 14, 2021
Apr 14, 2021
Oct 21, 2019
Oct 23, 2019

swahili Software License npm Github Fork NPM Hits

Generate random swahili words

Quick start

yarn add swahili

Usage

Generate random word

import swahili from 'swahili';

const sw = new swahili();

console.log(sw.random()); // Output: fedha

Random words by passing number of words argument in the costructor

import swahili from 'swahili';

const sw = new swahili(10); // json output with 10 words

console.log(sw.random()); 

Paragrah from random words

import swahili from 'swahili';

const sw = new swahili(10); // string output with 10 words

console.log(sw.paragraph()); 

Array from random words

import swahili from 'swahili';

const sw = new swahili(10); // array output with 10 words

console.log(sw.randomArray()); 

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ yarn test

Contributing

Pull requests are welcome. Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email hello@alphaolomi.com instead of using the issue tracker.

Credits

License

The Apache 2 License. Please see License File for more information.

Credits

About

Generate random swahiili words

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%