项目作者: hghazni

项目描述 :
NPM module that generates random titles
高级语言: JavaScript
项目地址: git://github.com/hghazni/random-title.git
创建时间: 2019-05-08T20:34:53Z
项目社区:https://github.com/hghazni/random-title

开源协议:MIT License

下载


Random Title

Generates a random selection out of a set of titles made by yourself.

  1. npm i @hghazni/random-title

Configure it with as many strings as you want, I’ve used 3 as an example.

  1. <script type="module">
  2. import rtitle from './node_modules/@hghazni/random-title/index.js';
  3. rtitle(
  4. //element ID you wish the title to go in
  5. {element: 'rtitle'},
  6. //string 1
  7. 'Title numero 1',
  8. //string 2
  9. 'Title numero 2',
  10. //string 3
  11. 'Title numero 3'
  12. );
  13. </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">