Skip to content

jbenet/node-go-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-go-platform

Figures out the host machine's platform for Go purposes.

npm install go-platform

cli

It includes a cli tool that prints out $GOOS-$GOARCH:

> npm install go-platform
> node_modules/.bin/go-platform
darwin-amd64

> node_modules/.bin/go-platform --env
GOOS=darwin
GOARCH=amd64

> node_modules/.bin/go-platform --obj
{"GOOS": "darwin", "GOARCH": "amd64"}

> node_modules/.bin/go-platform --obj --pretty
{
  "GOOS": "darwin",
  "GOARCH": "amd64"
}

lib

> var goplatform = require('go-platform')
> console.log(goplatform)
{ GOOS: 'darwin', GOARCH: 'amd64'}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published