npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

recruit-questionnaire-topic

v1.1.1

Published

```html <QuestionList status={4} isComments={true} questionList={questionnaireDetail.Comments} updateQuestionList={::this.updateQuestionList}> </QuestionList> ``` ```js QuestionList.propTypes = { // 题目列表 questionList: PropTypes.array, // 是否属

Readme

组件API

QuestionList 题目列表
<QuestionList
  status={4}
  isComments={true}
  questionList={questionnaireDetail.Comments}
  updateQuestionList={::this.updateQuestionList}>
</QuestionList>
QuestionList.propTypes = {
  // 题目列表
  questionList: PropTypes.array,
  // 是否属于综合评价
  isComments: PropTypes.boolean,
  // 状态 1:编辑 2:预览 3:提交 4:回答结果
  status: PropTypes.number,
  // 当数据更新后会调用该方法,回传最新的questionList数据,如果需要有任何编辑的情况(包括选中答案),需要提供该方法
  updateQuestionList: PropTypes.func,
  // // 如果是编辑态,即status === 1,需要提供下面的方法
  operConfig: PropTypes.shape({
    moveUpQuestion: PropTypes.func, // 上移题目
    moveDoneQuestion: PropTypes.func, // 下移题目
    copyQuestion: PropTypes.func,   // 拷贝题目
    deleteQuestion: PropTypes.func  // 删除题目
  }),
  // 选项操作事件
  optOperConfig: PropTypes.shape({
      addOption: PropTypes.func, // 添加选项
      deleteOption: PropTypes.func, // 删除选项
      moveUpOption: PropTypes.func, // 上移选项
      moveDownOption: PropTypes.func // 下移选项
    })
};
SingleChoiceQuestion 单选题
<SingleChoiceQuestion
</SingleChoiceQuestion>
SingleChoiceQuestion.propTypes = {
  index: PropTypes.number.isRequired, // 题目编号
  title: PropTypes.string.isRequired, // 题目标题
  options: PropTypes.array.isRequired, //题目选项
  status: PropTypes.number.isRequired, // 渲染形式 1:编辑 2预览 3提交 4禁用
  moveUpQuestion: PropTypes.func, //上移动函数
  moveDownQuestion: PropTypes.func, //下移动函数
  copyQuestion: PropTypes.func, //复制题目函数
  deleteQuestion: PropTypes.func, //移除题目函数
  addOption: PropTypes.func, //添加选项函数
  deleteOption: PropTypes.func, //删除选项函数
  moveUpOption: PropTypes.func, //选项上移函数
  moveDownOption: PropTypes.func //选项下移函数
};
MultiChoiceQuestion
<MutiChoiceQuestion   
</MutiChoiceQuestion>
MutiChoiceQuestion.propTypes = {
  index: PropTypes.number.isRequired, // 题目编号
  title: PropTypes.string.isRequired, // 题目标题
  options: PropTypes.array.isRequired, //题目选项
  status: PropTypes.number.isRequired, // 渲染形式 1:编辑 2预览 3提交
  moveUpQuestion: PropTypes.func, //上移动函数
  moveDownQuestion: PropTypes.func, //下移动函数
  copyQuestion: PropTypes.func, //复制题目函数
  deleteQuestion: PropTypes.func, //移除题目函数
  addOption: PropTypes.func, //添加选项函数
  deleteOption: PropTypes.func, //删除选项函数
  moveUpOption: PropTypes.func, //选项上移函数
  moveDownOption: PropTypes.func //选项下移函数
};
TextQuestion
<TextQuestion   
</TextQuestion>
TextQuestion.propTypes = {
  index: PropTypes.number.isRequired, // 题目编号
  title: PropTypes.string.isRequired, // 题目标题
  options: PropTypes.array.isRequired, //题目选项
  status: PropTypes.number.isRequired, // 渲染形式 1:编辑 2预览 3提交 4禁用
  moveUpQuestion: PropTypes.func, //上移动函数
  moveDownQuestion: PropTypes.func, //下移动函数
  copyQuestion: PropTypes.func, //复制题目函数
  deleteQuestion: PropTypes.func //移除题目函数
};
RateQuestion
<RateQuestion   
</RateQuestion>
RateQuestion.propTypes = {
  index: PropTypes.number.isRequired, // 题目编号
  title: PropTypes.string.isRequired, // 题目标题
  options: PropTypes.array.isRequired, //题目选项
  status: PropTypes.number.isRequired, // 渲染形式 1:编辑 2预览 3提交 4禁用
  moveUpQuestion: PropTypes.func, //上移动函数
  moveDownQuestion: PropTypes.func, //下移动函数
  copyQuestion: PropTypes.func, //复制题目函数
  deleteQuestion: PropTypes.func //移除题目函数
};