NPM module that generates random titles
Generates a random selection out of a set of titles made by yourself.
npm i @hghazni/random-title
Configure it with as many strings as you want, I’ve used 3 as an example.
<script type="module">
import rtitle from './node_modules/@hghazni/random-title/index.js';
rtitle(
//element ID you wish the title to go in
{element: 'rtitle'},
//string 1
'Title numero 1',
//string 2
'Title numero 2',
//string 3
'Title numero 3'
);
</script>
=> https://github.com/hghazni/random-title
=> @hghazni/random-title">NPM Module
=> Harry Ghazni
@hghazni/random-title.svg" alt="npm">
@hghazni/random-title.svg" alt="npm bundle size">