写了一个小工具-每日一句诗词 npm cli

tang-poems

Uses the API from this great article on 今日诗词API.
Feel free to make a PR to add!

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

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 © Carrie999

转载于:https://juejin.im/post/5d08a547518825276a286db4

猜你喜欢

转载自blog.csdn.net/weixin_34397291/article/details/93173562