Skip to content

Commit

Permalink
Publish uncors to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
evg4b committed Dec 10, 2022
1 parent 4268734 commit 0c5778b
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ server.crt
dist/
uncors
.idea
node_modules
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,22 @@ scoop bucket add evg4b https://github.com/evg4b/scoop-bucket.git
scoop install evg4b/uncors
```

## NPM (Cross-platform)

You can install uncors as node package in yout project with the following commands:

Via npm:

```bash
npm install uncors --save-dev
```

Via yarn:

```bash
yarn add uncors --dev
```

## Binary (Cross-platform)

Download the appropriate version for your platform from [UNCORS releases page](https://github.com/evg4b/uncors/releases).
Expand Down
21 changes: 21 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "uncors",
"version": "0.0.8",
"description": "A simple dev HTTP/HTTPS reverse proxy for replacing CORS headers.",
"main": "index.js",
"repository": "git@github.com:evg4b/uncors.git",
"author": "Evgeny Abramovich <evg.abramovitch@gmail.com>",
"license": "MIT",
"scripts": {
"postinstall": "go-npm install",
"preuninstall": "go-npm uninstall"
},
"goBinary": {
"name": "uncors",
"path": "./bin",
"url": "https://github.com/evg4b/uncors/releases/download/{{version}}/uncors_{{version}}_{{platform}}_{{arch}}.tar.gz"
},
"dependencies": {
"@go-task/go-npm": "^0.1.17"
}
}
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


"@go-task/go-npm@^0.1.17":
version "0.1.17"
resolved "https://registry.yarnpkg.com/@go-task/go-npm/-/go-npm-0.1.17.tgz#927a1a87a40024a9b192b58c40e6c86eefbbc836"
integrity sha512-j+xydQWrAxsqLYjweok1fWzDmBAA1g/gmFbPyG8kRI/d/+rzXGGLlro8zdS6mJ3Is+8BrIy2ZBmQkoONhowh7A==

0 comments on commit 0c5778b

Please sign in to comment.