【文件属性】:
文件名称:gh-polls:使用gh-polls创建民意调查
文件大小:802KB
文件格式:ZIP
更新时间:2021-05-02 09:03:26
poll apex polls up gh
gh-polls
使用gh-polls创建民意调查
安装
$ yarn add gh-polls
用法
import { ghPolls } from 'gh-polls'
const options = [ 'Tobi' , 'Loki' , 'Jane' ]
await ghPolls ( options )
关于
gh-polls (js)是一个节点模块,该模块返回带有3个键的object text , vote和image 。 创建了 ,以便能够在GitHub上使用民意调查。 使用gh-polls (js)您可以在GitHub外部(例如在您自己的网站上gh-polls (js)创建民意调查。
原料药
ghPolls([选项])
回报promise
选项
类型: array必填
选项数组(字符串)。
有关的
–在GitHub问题中调查
apex / up –支持gh-poll
【文件预览】:
gh-polls-main
----.gitignore(17B)
----jest.config.json(150B)
----package.json(804B)
----.kodiak.toml(4KB)
----tsconfig.json(145B)
----license(1KB)
----gh-polls.png(766KB)
----readme.md(1KB)
----.circleci()
--------config.yml(241B)
----source()
--------generate.ts(322B)
--------index.ts(221B)
--------utils.ts(51B)
--------api.ts(232B)
----renovate.json(65B)
----test()
--------index.test.ts(299B)
----yarn.lock(141KB)