🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

platform-tool

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

platform-tool

Provides various platform-specific information to application, helping cross-system portability

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

node-platform-tool

#Introduction

Node-platform is a little library providing platform-specific information to your application. Different platforms have different environments and this library aims to provide cohesive interface to common resources, such as data or temporary directories, without need to track platform-specific system requirements.

#Quick start

npm install platform-tool

Then

var platform = require('platform-tool');

#API

  • platform.homeDir() returns current users home directory.
  • platform.tmpDir() returns system temporary directory. This is convenience alias to os.tmpdir()
  • platform.appDir(name) returns directory that can be used as data directory for application.

#Convinience aliases

All provided methods have convenience lowercase aliases.

FAQs

Package last updated on 08 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts