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

datagrand-server

v1.0.51

Published

proxy server for old project

Downloads

2

Readme

proxy dev server for datagrand

安装

npm i datagrand-server -g

参数

  • static: [array],项目本地静态资源目录或文件,必须
  • api: [string],服务器域名或 ip,请写明 http 或 https,必须
  • cookie: [array],需要在 http header 中加入的 cookie,格式为{"name": "cookieName", "value": "cookieValue"},可选
  • root: [string],项目中请求的根目录,比如请求地址如果是/rootDir/***/*.*,则此选项应为rootDir/,可选
  • config: [string],前端项目配置接口路径,在代理中此地址会被替换为本地路径,可选
  • open: [string],代理服务器启动时打开的页面地址,可选
  • login: [string], cookie 失效时打开的登陆地址,可选

使用

在项目下配置 proxy.json

{
  "static": ["css/", "js/", "img/", "index.html", "signin.html"],
  "cookie": [{
    "name": "PHPSESSID",
    "value": "a6e1nkaqmh3ioju6u838qod4s5"
  }, {
    "name": "admin_login_status",
    "value": 1
  }],
  "api": "http://admin.datagrand.net",
  "root": "admin/",
  "config": "controlpanel/config/panel",
  "open": "http://localhost:3000/admin/index.html",
  "login": "http://admin.datagrand.net/admin/signin.html#/login"
}

在项目根目录执行

dgProxy

插件使用3000端口,请确保3000端口没有被占用!

todo

  • 监视本地文件并刷新