寫了一個小工具-每日一句詩詞 npm cli

tang-poems

Build Status

Uses the API from this great article on 今日詩詞API.
Feel free to make a PR to add!html

Ensure you have Node.js version 8 or higher installed. Then run the following:node

Install

npm install tang-poems -g   or  npm install tang-poems 
複製代碼

Usage --global

$ poem --help
  Usage
    $ poem [options]

  Examples
    $ poem     不知江月待何人,但見長江送流水。

  Options
    --all -a     Show all the poems content 
複製代碼

Usage local

const poem = require('tang-poems')
poem()
不知江月待何人,但見長江送流水。
複製代碼

License

MIT © Carrie999git

相關文章
相關標籤/搜索