JSPM

openteam-postinstall

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 54
  • Score
    100M100P100Q74859F
  • License MIT

Lightweight npm postinstall message and donate etc.

Package Exports

  • openteam-postinstall

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (openteam-postinstall) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Open Team postinstall

npm package downloads-total downloads-month star fork GitHub Last Commit issues Author 博客搭建交流群


欢迎使用和Star支持,如使用过程中碰到问题,可以提出 Issues,我会尽力完善

介绍

    npm install后提示用户消息或捐赠. Prompt user message or donate after npm install.

此插件根据开源插件**opencollective-postinstall**更改调整,加入了一些自定义参数配置.

  • 功能还很少,欢迎各位给我提意见和建议~

效果截图

截图

安装

npm install openteam-postinstall --save
# or
yarn add openteam-postinstall

开始使用

引入该插件

package.json中添加:

{
  "scripts": {
    "postinstall": "node -e \"try{require('openteam-postinstall')}catch(e){}\" || exit 0"
  }
}

插件配置

// 默认配置
"openteam": {
  // 开启调试模式(default: false)
  "debug": false,
  // GitHub地址
  "github": "https://github.com/JoeyBling",
  // 打赏配置
  "donate": {
    // 是否启用(default: true)
    "enable": true,
    // 打赏链接
    "url": "https://zhousiwei.gitee.io/ibooks/about/#%E6%89%93%E8%B5%8F"
  },
  // 其他自定义配置
  "others": {
    // 自定义Banner输出(可以使用${param.*}动态变量进行输出,取值为当前`packages.json`文件配置)(关闭请设置为false或置空)
    "banner": "\n\u001B[96mAlso, the author of ${name} (\u001B[94m${openteam.github}\u001B[96m) is looking for a good job -)\u001B[0m\n"
  }
}

Disabling this message

In some places (e.g. CI) you may want to disable this output. You can do this by setting the environment variable DISABLE_OPENCOLLECTIVE=true.

It will not be shown if npm's log level is set to silent (--silent), warn (--quiet), or error (--loglevel error).

其他项目支持

捐赠

    如果感觉对您有帮助,请作者喝杯咖啡吧,请注明您的名字或者昵称,方便作者感谢o( ̄︶ ̄)o

微信 支付宝

关于我

LICENSE

LICENSE