quote.js:选择随机报价

时间:2024-06-16 14:04:16
【文件属性】:

文件名称:quote.js:选择随机报价

文件大小:124KB

文件格式:ZIP

更新时间:2024-06-16 14:04:16

JavaScript

quote.js npm库用于选择带有选项的随机引号。 有1639个报价。 安装: npm i --save quote.js 用法: const quote = require ( "quote.js" ) ; quote ( amount , options ) ; 例如: quote ( ) ; // 1 random quote quote ( 2 , { minLength : 100 } ) ; // 2 random quotes with the minimum length of 100 选项: options = { minLength : number , maxLength : number , authorIsKnown : boolean }


【文件预览】:
quote.js-main
----quotes()
--------withAuthor.json(193KB)
--------withoutAuthor.json(10KB)
--------all.json(203KB)
----package.json(432B)
----LICENSE(1KB)
----index.js(2KB)
----test.js(91B)
----README.md(482B)

网友评论