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

sls-git-modules

v1.0.0

Published

git-modeules

Downloads

4

Readme

sls-git-modules

基于Git仓库作为包的管理工具。

此工具还在开发中,先出使用文档,再进行开发,更有利于使用。

使用方式

安装

npm install sls-git-module -g

初始化

gm init

执行完上面命令,会在当前目录生成git-module.json配置文件,内如如下:

{
    "date": "2017-12-28T01:44:51.175Z"
}

date属性的值是通过new Date()出来,后续在每次安装Git包的时候也会更新此值。

安装Git包的两种方式

通过path方式安装

gm install -p namespaceName/repoName

通过指定URL方式安装

gm install -u https://github.com/namespaceName/repoName.git或其他公共仓库

安装完包之后,会把此包写入配置文件git-module.json,格式如下:

{
    "date": "2017-12-28T01:44:51.175Z",
    "repos":[
        "https://github.com/namespaceName/repoName.git",
        "......"
    ]
}

repos 即是安装的所有仓库数组,此值之所以存储完整路径,是为了兼容各大Git平台,因为现在市场上很多Git平台,而这些平台毋容置疑肯定存在同样的仓库用户甚至用户名都是一样的,所以为了能更灵活,这里存储完整URL。

同时,会在当前目录创建 git-modules 文件夹,在 git-modules 目录下会安装仓库路径生成对应的目录,格式如下:

|----git-modules
|    |----namespaceName-repoName_github.com

包目录格式为:命名空间-仓库名称_Git服务器的host,之所以以这种格式,是为了把仓库名称放前面,是为了方便快速定位。

更新Git包的两种方式

通过path方式更新

gm update -p namespaceName/repoName

通过指定URL方式更新

gm update -u https://github.com/namespaceName/repoName.git或其他公共仓库

上面两种方式是更新具体的包。

安装和更新 全部包

全部安装 类似 npm install

gm install

全部更新

gm update