All Projects → jonschlinkert → global-prefix

jonschlinkert / global-prefix

Licence: MIT license
Get the npm global path prefix. Same code used internally by npm.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to global-prefix

is-valid-glob
Return true if a value is a valid glob pattern string, or array of glob patterns.
Stars: ✭ 21 (-22.22%)
Mutual labels:  path, filepath
requireg
Resolve and require local & global modules in node.js like a boss
Stars: ✭ 45 (+66.67%)
Mutual labels:  path, global
is-relative
Returns `true` if a file path appears to be relative. Moved from the "relative" lib.
Stars: ✭ 13 (-51.85%)
Mutual labels:  path, filepath
pathway
A set of APIs to manipulate graphics paths on Android.
Stars: ✭ 162 (+500%)
Mutual labels:  path
JSON-path
Find the path of a key / value in a JSON hierarchy easily.
Stars: ✭ 88 (+225.93%)
Mutual labels:  path
SwiftUI-bez
Utilities for working with bezier curves in SwiftUI
Stars: ✭ 80 (+196.3%)
Mutual labels:  path
CSGO-Offset-Scanner
Java Based Cross-Platform CSGO Offset and Netvar Scanner
Stars: ✭ 28 (+3.7%)
Mutual labels:  global
path-dsl-rs
A Rust utility DSL and macro to help construct and modify Paths.
Stars: ✭ 19 (-29.63%)
Mutual labels:  path
download water data
Downloader for the Global Surface Water Data of the Copernicus Programme
Stars: ✭ 25 (-7.41%)
Mutual labels:  global
oggm
Open Global Glacier Model
Stars: ✭ 167 (+518.52%)
Mutual labels:  global
guide-to-becoming
แหล่งรวบรวมข้อมูลสำหรับคนที่อยากจะพัฒนาตัวเองในด้านต่างๆจากผู้เริ่มต้นสู่ระดับเทพ
Stars: ✭ 23 (-14.81%)
Mutual labels:  path
BottomNavigation-RichPath-Sample
BottomNavigation RichPath Sample
Stars: ✭ 76 (+181.48%)
Mutual labels:  path
pathtools
DEPRECATED This twig plugin for the Craft CMS brings convenient path & url manipulation functions & filters to your Twig templates.
Stars: ✭ 19 (-29.63%)
Mutual labels:  path
distube-music-bot
An advanced music bot based on distube.js.org with filters and more
Stars: ✭ 24 (-11.11%)
Mutual labels:  prefix
lookpath
The minimum and most straightforward way to check if command exists and where the executable is, without spawning child_process.
Stars: ✭ 49 (+81.48%)
Mutual labels:  path
Jolf
A golfier prefix version of JavaScript
Stars: ✭ 13 (-51.85%)
Mutual labels:  prefix
path-to-regexp-php
PHP port of https://github.com/pillarjs/path-to-regexp
Stars: ✭ 21 (-22.22%)
Mutual labels:  path
panther
Perception-Aware Trajectory Planner in Dynamic Environments
Stars: ✭ 115 (+325.93%)
Mutual labels:  path
is-dotfile
Return true if the file is (or the file path has) a dotfile.
Stars: ✭ 13 (-51.85%)
Mutual labels:  filepath
gogtags
GNU global compatible source code tagging for golang
Stars: ✭ 42 (+55.56%)
Mutual labels:  global

global-prefix NPM version NPM monthly downloads NPM total downloads Linux Build Status Windows Build Status

Get the npm global path prefix.

Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your ❤️ and support.

Install

Install with npm:

$ npm install --save global-prefix

This is partially based on the code used by npm internally to resolve the global prefix.

Usage

var prefix = require('global-prefix');
//=> '/usr/local' (this path will differ by system and user-defined config)

About

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Running Tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test
Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Related projects

You might also be interested in these projects:

  • global-modules: The directory used by npm for globally installed npm modules. | homepage
  • global-paths: Returns an array of unique "global" directories based on the user's platform and environment. The… more | [homepage](https://github.com/jonschlinkert/global-paths "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.")

Contributors

Commits Contributor
23 jonschlinkert
15 doowb
2 phated
1 rmbaad
1 avengerpenguin
1 jorrit
1 mathiasvr
1 tunnckoCore

Author

Jon Schlinkert

License

Copyright © 2018, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.6.0, on October 11, 2018.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].