Socket
Book a DemoInstallSign in
Socket

get-global-paths

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-global-paths

Get all global paths from an array

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

get-global-paths Build Status

Get all global paths from an array

Install

$ npm install --save get-global-paths

Usage

const getGlobalPaths = require('get-global-paths');

const paths = [
	'/home/johndoe',
	'/usr/bin',
	'/usr/local/bin'
];

getGlobalPaths(paths);
//=> ['/usr/bin', '/usr/local/bin']

API

getGlobalPaths(paths)

Type: Array

An array of paths to match against.

License

MIT © Kevin Mårtensson

Keywords

array

FAQs

Package last updated on 29 Sep 2016

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