UNPKG
neo-quote-for-the-day
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Some beautiful quotes
neo-quote-for-the-day
/
src
/
index.ts
8 lines
(6 loc)
•
204 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
{ quotes }
from
'./quotes'
;
export
function
getQuoteOfTheDay
(
): {
text
:
string
;
author
:
string
}{
const
day =
new
Date
().
getDate
();
return
quotes[day % quotes.
length
]; }
export
{ quotes };