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 🙏

© 2024 – Pkg Stats / Ryan Hefner

better-headless

v1.1.9

Published

puppetter command

Downloads

4

Readme

部署 noah

安装

全局: npm install -g better-headless
当前目录: npm install better-headless

命令行

deployNoah

deployNoah file1 [file2] [file3]

程序运行目录作为根目录,依次去找 file1,file2,file3 的配置文件.读取文件中的配置.后面覆盖前面.配置文件格式如下

app=cmshz-xxxx-xxxx
cluster=cmshz-article-xxxx-xx_test
branch=dev
user=bjxxxxx
pwd=xxxxxx
show=false
debug=true
stop=no

| 名称 | 必须 | 描述 | 默认 | | ------- | ---- | ----------------------------------------------- | ----- | | app | 是 | 应用 | | | cluster | 是 | 集群 | | | user | 是 | 用户名 | | | pwd | 是 | 密码 | | | branch | 否 | 分支 HEAD 表示当前 git 分支 | HEAD | | show | 否 | 是否显示浏览器操作过程 | false | | debug | 否 | 是否显示 debug 信息 | true | | stop | 否 | 暂停模式三选一 first-第一批 each-每批 no-不暂停 | stop |

openid

openid username passwd

设置全局默认的账号密码.

最佳实践

用户密码写在`.pwd` 中或通过openid命令进行全局设置

不同环境配置写在不同文件中,比如 .test .pre .online 统一维护

package.json 中不同环境调用不同的配置文件,比如:

    "test": "deployNoah .pwd .test"
    "pre": "deployNoah .pwd .pre"

node 调用

// commonjs module
const { deployNoah } = require('better-headless')
// es6 module
import { deployNoah } from 'better-headless'

deployNoah({app,cluster,branch,user,pwd,show,debug,stop}).then(xxx => xxx).catch(error => {
  console.error(error)
})