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

envsh

v1.0.4

Published

environment shell

Downloads

19

Readme

env-shell

一个切换本地开发环境的插件

使用它,会更方便的修改本地 .env.development.local文件中的值

默认会更改 REACT_APP_API_HOST的值,可配置

预先配置环境地址(必须)

使用此插件,首先需要在项目根目录下的 .env.development.local 中补充环境地址 测试环境是TEST_HOST,预发布环境是PRE_HOST,生产环境是PRO_HOST。

示例:

TEST_HOST=https://test.com
PRE_HOST=https://pre.com
PRO_HOST=https://production.com

配置需要更改的环境变量名(非必须)

如果你忽略此项配置,envsh会默认更改REACT_APP_API_HOST的值

环境变量名键名为ENVSH_HOST,可配置多个键值,用英文逗号隔开 示例:

ENVSH_HOST=VUE_APP_API_HOST,ANGULAR_APP_API_HOST

PS:以上示例,切换环境时,会同时更改 VUE_APP_API_HOSTANGULAR_APP_API_HOST的值

用法1:

在根目录下运行 npx envsh

直接使用npx会很方便,但是npx下载依赖(用完会清除)会带来延迟,因此推荐用法2

用法2

在目录中添加此包,体验无延迟的切换脚本

  • 根目录下运行 npm install envsh --save-dev 或者 yarn add envsh --dev
  • 根目录下运行 npx envs 即可体验快速切换环境