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

create-hdx

v2.2.0

Published

- npm - cnpm - yarn 充分利用缓存,自动检查包得完整性

Downloads

1

Readme

包管理工具

  • npm
  • cnpm
  • yarn 充分利用缓存,自动检查包得完整性

如何使用 yarn

    npm install -g yarn

yarn 常用命令

  • yarn add -g|-d
  • yarn install

nodejs 的特性

  • 单线程
  • 非阻塞
  • 异步 i/o
  • 事件驱动
  • 跨平台

进程

常用 API

  • process.title - 进程执行的命令行参数
  • process.version
  • process.versions
  • process.arch - 获取当前系统类型
    • 64 位 8G 运行内存
    • 32 位 4G 运行内存
  • process.platform - 获取当前系统平台
    • win32 window 平台
    • macos 苹果电脑系统
  • process.argv 获取命令行参数
  • process.env 当前系统的环境变量
  • process.pid 当前进程的 id
  • process.cwd 获得当前进程执行的所在路径
  • process.nextTick 同 setTimeout
  • process.stdin 标准输入 - 基于 stream 流
  • process.stdout 标准输出 - write
  • process.stderr 标准输出错误 - write
  • process.exit 退出进程
  • process.kill 发射信号

子进程

  • spawn - child_process.spawn(command[, args][, options])