global-paths
Advanced tools
Comparing version 0.1.1 to 0.1.2
'use strict'; | ||
var path = require('path'); | ||
var root = require('global-modules'); | ||
var isWindows = require('is-windows'); | ||
var root = require('global-modules'); | ||
var unique = require('array-unique'); | ||
var path = require('path'); | ||
@@ -23,3 +23,3 @@ /** | ||
while (segs.pop()) { | ||
res.push((isWindows() ? '/' : '') + npm(segs.join('/'))); | ||
res.push((!isWindows() ? '/' : '') + npm(segs.join('/'))); | ||
} | ||
@@ -26,0 +26,0 @@ |
{ | ||
"name": "global-paths", | ||
"description": "Returns an array of unique \"global\" directories based on the user's platform and environment. The resulting paths can be used for doing lookups for generators or other globally installed npm packages. Node.js / JavaScript.", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/jonschlinkert/global-paths", | ||
@@ -28,4 +28,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"devDependencies": { | ||
"mocha": "*", | ||
"should": "*" | ||
"mocha": "*" | ||
}, | ||
@@ -45,7 +44,7 @@ "keywords": [ | ||
"list": [ | ||
"global-modules", | ||
"global-prefix", | ||
"contains-path", | ||
"cwd", | ||
"git-config-path", | ||
"contains-path" | ||
"global-modules", | ||
"global-prefix" | ||
] | ||
@@ -52,0 +51,0 @@ } |
@@ -1,2 +0,2 @@ | ||
# global-paths [![NPM version](https://badge.fury.io/js/global-paths.svg)](http://badge.fury.io/js/global-paths) | ||
# global-paths [![NPM version](https://badge.fury.io/js/global-paths.svg)](http://badge.fury.io/js/global-paths) [![Build Status](https://travis-ci.org/jonschlinkert/global-paths.svg)](https://travis-ci.org/jonschlinkert/global-paths) | ||
@@ -32,7 +32,7 @@ > Returns an array of unique "global" directories based on the user's platform and environment. The resulting paths can be used for doing lookups for generators or other globally installed npm packages. Node.js / JavaScript. | ||
* [cwd](https://github.com/jonschlinkert/cwd): Node.js util for easily getting the current working directory of a project based on package.json… [more](https://github.com/jonschlinkert/cwd) | ||
* [contains-path](https://github.com/jonschlinkert/contains-path): Return true if a file path contains the given path. | ||
* [global-modules](https://github.com/jonschlinkert/global-modules): The directory used by npm for globally installed npm modules. | ||
* [global-prefix](https://github.com/jonschlinkert/global-prefix): Get the npm global path prefix. | ||
* [git-config-path](https://github.com/jonschlinkert/git-config-path): Resolve the path to the user's global .gitconfig. | ||
* [contains-path](https://www.npmjs.com/package/contains-path): Return true if a file path contains the given path. | [homepage](https://github.com/jonschlinkert/contains-path) | ||
* [cwd](https://www.npmjs.com/package/cwd): Easily get the CWD (current working directory) of a project based on package.json, optionally starting… [more](https://www.npmjs.com/package/cwd) | [homepage](https://github.com/jonschlinkert/cwd) | ||
* [git-config-path](https://www.npmjs.com/package/git-config-path): Resolve the path to the user's global .gitconfig. | [homepage](https://github.com/jonschlinkert/git-config-path) | ||
* [global-modules](https://www.npmjs.com/package/global-modules): The directory used by npm for globally installed npm modules. | [homepage](https://github.com/jonschlinkert/global-modules) | ||
* [global-prefix](https://www.npmjs.com/package/global-prefix): Get the npm global path prefix. | [homepage](https://github.com/jonschlinkert/global-prefix) | ||
@@ -49,3 +49,3 @@ ## Running tests | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/global-paths/issues/new) | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/global-paths/issues/new). | ||
@@ -66,2 +66,2 @@ ## Author | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 15, 2015._ | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 19, 2015._ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5822
1