Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amilajack/os-type

Node bindings to the os_type Rust library
https://github.com/amilajack/os-type

native-module neon node rust

Last synced: 2 months ago
JSON representation

Node bindings to the os_type Rust library

Awesome Lists containing this project

README

        

# os-type

[![Build Status](https://travis-ci.com/amilajack/os-type.svg?branch=master)](https://travis-ci.com/amilajack/os-type)

Bindings to the [os_type](https://github.com/schultyy/os_type) Rust library using [Neon](https://github.com/neon-bindings/neon)

## Installation
```bash
npm install os-type
```

## Usage
```js
import osType from 'os-type';

console.log(osType.currentPlatform());
// Object {
// "osType": "unknown",
// "version": "0.0.0",
// }
```