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

grimoire-tool

v1.1.16

Published

魔法书的工具包 grimoire-tool

Downloads

8

Readme

grimoire-tool

常用命令封装,基于 urfave/cli 实现。

Description

一键工具:

  • github 代码库同步(sync)一键同步 github 仓库。
  • hexo 博客预览(preview)、发布(publish)
  • space 目录空间查看工具

Usage

NAME:
   grimoire-tool - grimoire-tool is a tool of grimoire, batch execute commands.

USAGE:
   grimoire-tool [global options] command [command options] [arguments...]

VERSION:
   1.1.0

COMMANDS:
   space    space of current directory.
   help, h  Shows a list of commands or help for one command

   git:
     git  git commands: sync.

   hexo:
     hexo  hexo blog commands: preview, publish.

   markdown:
     markdown  markdown commands: toc.

GLOBAL OPTIONS:
   --message value, -m value  the commit message of git (default: "auto commit")
   --help, -h                 show help
   --version, -v              print the version

git sync

执行:

grimoire-tool --m "auto commit " git sync
2019/10/05 11:34:56 status:
2019/10/05 11:34:56 ## master...origin/master
 M command/git/status.go
 M command/git/sync.go

2019/10/05 11:34:56 has file
2019/10/05 11:34:56 Execute git status finished, some file will be committed
2019/10/05 11:34:56 Execute git add finished.
2019/10/05 11:34:56 Execute git commit finished.
2019/10/05 11:34:58 Execute git pull finished.
2019/10/05 11:35:03 Execute git push finished.
2019/10/05 11:35:03 Execute Command finished.

space

查看目录空间:

➜  grimoire-tool git:(master) grimoire-tool space                      
16B     .gitignore
116B    after
117B    before
151B    CHANGELOG.md
396B    flag
814B    Gopkg.toml
1K      Gopkg.lock
2K      main.go
2K      README.md
7K      command
10K     lib
34K     LICENSE
1M      .git

Install

方式一,通过npm安装:

npm install grimoire-tool -g

方式二,通过 go 安装:
To install, use go get:

go get -u github.com/LeungGeorge/grimoire-tool

Contribution

  1. Fork (https://github.com/LeungGeorge/grimoire-tool/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create a new Pull Request

Author

LeungGeorge