@hghazni/random-title
v1.1.1
Published
Generates a random selection out of a set of titles made by yourself.
Downloads
6
Readme
Random Title
By Harry Ghazni / COPYRIGHT 2019
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
=> NPM Module
=> Harry Ghazni