Files
go-npm/example/package.json
Sanath Kumar Ramesh e879e81a02 Initial commit of Go NPM
Allows you to distribute and install Go binaries through NPM.
2017-08-07 23:18:49 -07:00

18 lines
370 B
JSON

{
"name": "app",
"version": "0.0.1",
"description": "Example App",
"main": "index.js",
"scripts": {
"install": "go-npm"
},
"bin": {
"myBinaryName": "./bin"
},
"goBinary": {
"name": "myBinaryName",
"path": "./bin",
"url": "https://github.com/user/myrepo/releases/download/v{{version}}/myBinaryName{{platform}}_{{arch}}.tar.gz"
}
}