<div class="logo" align = "center">
  <img src="./assets/readme_imgs/logo.png">
</div>

<h1 class="title" align = "center">Wen.JS</h1>

<div class="shields">
  <img height="28px" alt="License" src="https://img.shields.io/github/license/wen-js/wenjs?style=for-the-badge" style="max-width:100%;">
  <img height="28px" alt="version" src="https://img.shields.io/npm/v/@thewen/wenjs?style=for-the-badge" style="max-width:100%;">
  <img height="28px" alt="version" src="https://img.shields.io/npm/dy/@thewen/wenjs?style=for-the-badge" style="max-width:100%;">
  <img height="28px" alt="Patreon" src="https://img.shields.io/endpoint?style=for-the-badge&url=https%3A%2F%2Fshields.redsparr0w.com%2F2473%2Fmonday" style="max-width:100%;">
  <img height="28px" alt="Patreon" src="https://img.shields.io/static/v1?label=QQ%E7%BE%A4&message=%E7%9B%B8%E4%BA%B2%E7%9B%B8%E7%88%B1%E4%B8%80%E5%AE%B6%E4%BA%BA&color=ebb92e&style=for-the-badge" style="max-width:100%;">
</div>

# 使用 Usage
1. npm
    ```javascript
    import wenjs from '@thewen/wenjs'
    wenjs.helloWen() // open console
    ```
2. 直接引用
    ```html
    <!-- 直接下载仓库中dist/wenjs.js或者dist/wenjs.min.js-->
    <script src="dist/wenjs.js"></script>
    <script>
      wenjs.helloWen()
    </script>
    ```
3. CDN

   [![](https://data.jsdelivr.com/v1/package/npm/@thewen/wenjs/badge)](https://www.jsdelivr.com/package/npm/@thewen/wenjs?path=dist)

    或者

    [UNPKG](https://unpkg.com/browse/@thewen/wenjs/dist/)

# API
- [helloWen](#helloWen)
- [baidu](#baidu)
## helloWen
问宗和你打招呼
```typescript
wenjs.helloWen()
// 打开控制台看输出
```

## baidu
告诉你任何问题的答案
```typescript
wenjs.baidu(keyword: string)
// 直接打开新窗口
```

## whois
告诉你ta是谁

使用jsonp查询，词条编辑在[这里](https://github.com/wen-js/wen-data)
```typescript
wenjs.whois(who: string): Promise<string>
// 返回ta的简介
```
# 赞助者

<!-- [上海逆行信息科技](http://www.desmix.com/) -->

# 贡献者

<!-- <p>
<img src="https://opencollective.com/chinese-poetry/contributors.svg?width=890&button=false" alt="Contributors">
</p> -->

# 案例展示

<details>
  <summary>案例展示</summary>
<!--
- [中文诗歌主页](https://shici.store)是一个基于浏览器的诗词网站，包含唐诗三百首、宋词三百首等文集。
- [animalize](https://github.com/animalize) **/** [QuanTangshi](https://github.com/animalize/QuanTangshi)  *离线全唐诗 Android*
- [justdark](https://github.com/justdark) **/** [pytorch-poetry-gen](https://github.com/justdark/pytorch-poetry-gen)  *a char-RNN based on pytorch*
- [Clover27](https://github.com/Clover27) **/** [ancient-Chinese-poem-generator](https://github.com/Clover27/ancient-Chinese-poem-generator)  *Ancient-Chinese-Poem-Generator*
- [chinese-poetry](https://github.com/chinese-poetry) **/** [poetry-calendar](http://shici.store/poetry-calendar/)  *诗词周历*
- [chenyuntc](https://github.com/chenyuntc) **/** [pytorch-book](https://github.com/chenyuntc/pytorch-book/blob/master/chapter9-神经网络写诗(CharRNN)/) *简体唐诗生成(char-RNN)，可生成藏头诗，自定义诗歌意境，前缀等*
- [okcy1016](https://github.com/okcy1016) **/** [poetry-desktop](https://github.com/okcy1016/poetry-desktop/) *诗词桌面*
- [huangjianke](https://github.com/huangjianke) **/** [weapp-poem](https://github.com/huangjianke/weapp-poem/) *诗词墨客 小程序版*
- [汉字之美](https://hz.xusenlin.com/)汉字之美是一个方便查询的诗词网站，简洁干净，方便使用。 -->

</details>
