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

spm-yuan

v0.0.5

Published

Start a simple spm source server.

Downloads

14

Readme

spm-yuan

一个简易的 Spm 源服务,以 Spm 插件的形式提供


使用

安装

请先安装 spm

$ npm install spm -g
$ npm install spm-yuan -g

启动源服务

在任意目录下,运行以下命令

$ spm yuan

这样一个 Spm 源服务就启动了,地址为 http://your.ip.address:3000

支持参数配置端口号和启动的线程数(默认为 3000 和 CPU 内核数)

$spm yuan -p 80 -w 4

使用源服务

要让 Spm 使用上一步启动的源,需要修改 ~/.spm/spmrc (没有请创建),增加或修改以下配置

[source:default]
url = http://your.ip.address:3000

说明

  • 源服务使用 spm 安装缓存中的文件对外提供服务,启动前会先扫描缓存目录,并从官网下载一些相应的文件
  • 如果要搭建一个官方源的镜像,你需要先通过 spm install 安装所有官方源的模块,安装路径无所谓,因为只要安装过,安装缓存里会有相应的包
  • 只提供对 info/install/publish/unpublish/login 命令的支持
  • publish/unpublish 等操作前需要登录,用户信息配置在 ~/.spm/yuan_account.json 文件中

变动历史

2013-06-09 0.0.1

  • 改名为 spm-yuan,并入 spmjs