From fa1c796f3c2677e8c702d2fc8d1bc7ca44e4e185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=A0Ilya=20Atamas?= Date: Tue, 7 May 2019 11:05:12 +0300 Subject: [PATCH] fix: update org name --- cli/list.go | 2 +- cli/main.go | 2 +- cli/purge.go | 2 +- cli/root.go | 2 +- example/main.go | 2 +- go.mod | 2 +- main.go | 2 +- proxy/proxy.go | 2 +- readme.md | 22 +++++++++++----------- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/cli/list.go b/cli/list.go index 7b23a88..6c63a2c 100644 --- a/cli/list.go +++ b/cli/list.go @@ -3,7 +3,7 @@ package cli import ( "fmt" - npmproxy "github.com/emeralt/npm-cache-proxy/proxy" + npmproxy "github.com/pkgems/npm-cache-proxy/proxy" "github.com/spf13/cobra" ) diff --git a/cli/main.go b/cli/main.go index 36fc3f5..31172f1 100644 --- a/cli/main.go +++ b/cli/main.go @@ -5,7 +5,7 @@ import ( "net/http" "os" - npmproxy "github.com/emeralt/npm-cache-proxy/proxy" + npmproxy "github.com/pkgems/npm-cache-proxy/proxy" "github.com/go-redis/redis" ) diff --git a/cli/purge.go b/cli/purge.go index 1edb616..43c40d4 100644 --- a/cli/purge.go +++ b/cli/purge.go @@ -1,7 +1,7 @@ package cli import ( - npmproxy "github.com/emeralt/npm-cache-proxy/proxy" + npmproxy "github.com/pkgems/npm-cache-proxy/proxy" "github.com/spf13/cobra" ) diff --git a/cli/root.go b/cli/root.go index d7696d4..70d7a90 100644 --- a/cli/root.go +++ b/cli/root.go @@ -4,7 +4,7 @@ import ( "log" "time" - npmproxy "github.com/emeralt/npm-cache-proxy/proxy" + npmproxy "github.com/pkgems/npm-cache-proxy/proxy" "github.com/spf13/cobra" ) diff --git a/example/main.go b/example/main.go index 154cd08..ff261c2 100644 --- a/example/main.go +++ b/example/main.go @@ -4,7 +4,7 @@ import ( "net/http" "time" - npmproxy "github.com/emeralt/npm-cache-proxy/proxy" + npmproxy "github.com/pkgems/npm-cache-proxy/proxy" "github.com/go-redis/redis" ) diff --git a/go.mod b/go.mod index 9b3e37d..858e3fe 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/emeralt/npm-cache-proxy +module github.com/pkgems/npm-cache-proxy go 1.12 diff --git a/main.go b/main.go index 97a17c7..bf8f8f5 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/emeralt/npm-cache-proxy/cli" + "github.com/pkgems/npm-cache-proxy/cli" ) func main() { diff --git a/proxy/proxy.go b/proxy/proxy.go index 23f4527..9c382e4 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -1,6 +1,6 @@ // // Package proxy implements a HTTP caching proxy for Node package registry (NPM). -// See https://github.com/emeralt/npm-cache-proxy/ for more information about proxy. +// See https://github.com/pkgems/npm-cache-proxy/ for more information about proxy. // package proxy diff --git a/readme.md b/readme.md index 35be62f..2ee2395 100644 --- a/readme.md +++ b/readme.md @@ -3,14 +3,14 @@

npm-cache-proxy

- - Current Release + + Current Release - - CI Build + + CI Build - - Licence + + Licence @@ -23,7 +23,7 @@ NCP is a tiny but very fast caching proxy written in Go. It uses Redis for data storage, which in combination with the speed of Go makes it incredibly fast. NCP is well-optimized and can be run on almost any platform, so if you have a Raspberry Pi, you can install NCP as your local cache there. #### ✨ Modularity -NCP is modular. Now it has only one database adapter which is Redis. If you need support for any other database, feel free to open an issue or implement it [on your own](https://github.com/emeralt/npm-cache-proxy/blob/7c8b90ff6ba0656f60e3de915b9fb4eaabfb467b/proxy/proxy.go#L29) and then open a pull request (_bonus points_). +NCP is modular. Now it has only one database adapter which is Redis. If you need support for any other database, feel free to open an issue or implement it [on your own](https://github.com/pkgems/npm-cache-proxy/blob/7c8b90ff6ba0656f60e3de915b9fb4eaabfb467b/proxy/proxy.go#L29) and then open a pull request (_bonus points_). #### 💡 Simplicity NCP is very simple. It just proxies requests to an upstream registry, caches response and returns cached response for next requests to the same package. Cached data are stored in Redis with an original request URL as a key. @@ -33,14 +33,14 @@ NCP is very simple. It just proxies requests to an upstream registry, caches res ## Installation -NCP binaries for different paltforms can be downloaded can be downloaded on the [Releases](https://github.com/emeralt/npm-cache-proxy/releases) page. Also, Docker image is provided on [Docker Hub](https://cloud.docker.com/u/emeralt/repository/docker/emeralt/npm-cache-proxy). +NCP binaries for different paltforms can be downloaded can be downloaded on the [Releases](https://github.com/pkgems/npm-cache-proxy/releases) page. Also, Docker image is provided on [Docker Hub](https://cloud.docker.com/u/pkgems/repository/docker/pkgems/npm-cache-proxy). #### 💫 Quick Start The quickies way to get started with NCP is to use Docker. ```bash # run proxy inside of docker container in background -docker run -e REDIS_ADDRESS=host.docker.internal:6379 -p 8080:8080 -it -d emeralt/npm-cache-proxy +docker run -e REDIS_ADDRESS=host.docker.internal:6379 -p 8080:8080 -it -d pkgems/npm-cache-proxy # configure npm to use caching proxy as registry npm config set registry http://localhost:8080 @@ -127,7 +127,7 @@ Number of Errors: 0 ## Programmatic Usage -NCP provides `proxy` go package that can be used programmatically. Docs are available on [godoc.org](https://godoc.org/github.com/emeralt/npm-cache-proxy/proxy). +NCP provides `proxy` go package that can be used programmatically. Docs are available on [godoc.org](https://godoc.org/github.com/pkgems/npm-cache-proxy/proxy). #### 🤖 Example ```golang @@ -137,7 +137,7 @@ import ( "net/http" "time" - npmproxy "github.com/emeralt/npm-cache-proxy/proxy" + npmproxy "github.com/pkgems/npm-cache-proxy/proxy" "github.com/go-redis/redis" )