# go-platform

> print out golang platform variables

Latest version **1.0.0** (published 2015-04-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install go-platform
pnpm add go-platform
yarn add go-platform
bun add go-platform
```

Provides the command `go-platform`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-04-12 |
| First published | 2015-04-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Juan Benet |
| Maintainers | jbenet |
| Keywords | golang, platform, go |

## Links

- npm: https://www.npmjs.com/package/go-platform
- Repository: https://github.com/jbenet/node-go-platform
- Issues: https://github.com/jbenet/node-go-platform/issues
- npm.io page: https://npm.io/package/go-platform

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-04-12

## README

# 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`:

```sh
> 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

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

---
_Source: https://npm.io/package/go-platform · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
