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

@gotoeasy/gotoeasy-cli

v0.1.0

Published

gotoeasy-cli

Downloads

27

Readme

@gotoeasy/gotoeasy-cli

简化操作

  • 把package.json简化为package.btf,方便阅读编辑
  • 简化发布过程,自动累加最小版本号

NPM version License

Install

npm i -g @gotoeasy/gotoeasy-cli

初次创建package.btf

// 在当前目录创建package.btf文件例子(存在也会被覆盖)
gotoeasy initpackage

// 也可使用缩写命令ge替代gotoeasy
ge initpackage

package.btf文件内容样本 (btf格式参照底部链接)

// -------------------------------------------------
// 这是个替代package.json用的配置文件
// 结合gotoeasy-cli命令行,发布前转换为package.json
// 
// 主要是因为json配置文件看得不爽
// 更是因为package.json竟然不能写注释
// 最后是发布前修改版本号感觉太琐碎了
// 
// 除name和version是必须外,其他都是可选
// 按这个例子文件根据需要删减选填
// 然后使用命令gotoeasy publish简写ge p自动转换发布
// 发布仅自动累加更新最小版本
// -------------------------------------------------
[name] // 项目名 (必填)
name

[version] // 版本号 (必填)
0.0.0

[main] // 入口文件
index.js

[dependencies] // 依赖库
xxxxx : *
yyyyy : *
zzzzz : *

[devDependencies] // 开发依赖库
xxxxx : *
yyyyy : *

[bin] // cli命令
gotoeasy = bin/gotoeasy
ge = bin/gotoeasy

[scripts] // 脚本命令
test = echo "Error: no test specified" && exit 1

[description] // 描述
gotoeasy-cli

[keywords] // 检索关键字,多个关键字用半角逗号分隔
keyword1, keyword2, keyword3

[engines] // 指定环境要求版本
node : >= 10.0.0
npm : >= 6.1.0

[repository] // 仓库
type= git
url = git+https://github.com/xxxxx/yyyyyyy.git

[homepage] // 主页,github项目会被自动识别设定
https://github.com/gotoeasy/........../README.md

[bugs] // BUG提交地址,github项目会自动识别设定
url = https://github.com/xxxxx/yyyyyyy/issues

[author] // 作者信息
name = your name
email= your email

[license] // 协议
Apache-2.0

package.btf修改好后,使用命令发布npm包

// 累加package.btf文件中的小版本号后转换为package.json
// 然后使用npm publish命令发布,成功后更新package.btf文件
gotoeasy publish

// 也可使用缩写命令
ge p

Links

  • Block-Text-File Specification https://github.com/gotoeasy/block-text-file
  • npm-packages https://github.com/gotoeasy/npm-packages