All Projects → jonschlinkert → Resolve Dir

jonschlinkert / Resolve Dir

Licence: mit
Resolve a directory that is either local, global or in the user's home directory.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Resolve Dir

file-icon-cli
Get the icon of a file or app as a PNG image (macOS)
Stars: ✭ 73 (+421.43%)
Mutual labels:  file, path
File Icon
Get the icon of a file or app as a PNG image (macOS)
Stars: ✭ 100 (+614.29%)
Mutual labels:  path, file
Coc Explorer
📁 Explorer for coc.nvim
Stars: ✭ 722 (+5057.14%)
Mutual labels:  file
Angular File Picker
A simple file picker for Angular
Stars: ✭ 9 (-35.71%)
Mutual labels:  file
Androidexplorer
An Android file explore like RootExplorer
Stars: ✭ 23 (+64.29%)
Mutual labels:  file
A File Icon
Sublime Text File-Specific Icons for Improved Visual Grepping
Stars: ✭ 767 (+5378.57%)
Mutual labels:  file
Pytest Patterns
A couple of examples showing how pytest and its plugins can be combined to solve real-world needs.
Stars: ✭ 24 (+71.43%)
Mutual labels:  file
Android
An Open-Source Android application that allows you to send and receive files over available connections, and offers unique features like sharing over HTTP, pausing and resuming transfers
Stars: ✭ 695 (+4864.29%)
Mutual labels:  file
Fcfilemanager
iOS File Manager on top of NSFileManager for simplifying files management. 📂
Stars: ✭ 862 (+6057.14%)
Mutual labels:  file
Eager Image Loader
The eager-loading for image files on the web page that loads the files according to your plan. This differs from the lazy-loading, for example, this can be used to avoid that the user waits for the loading.
Stars: ✭ 22 (+57.14%)
Mutual labels:  file
Path.swift
Delightful, robust, cross-platform and chainable file-pathing functions.
Stars: ✭ 839 (+5892.86%)
Mutual labels:  path
Is Absolute
Returns true if a filepath is absolute. The original path-is-absolute.
Stars: ✭ 19 (+35.71%)
Mutual labels:  path
Macsvg
macSVG - An open-source macOS app for designing HTML5 SVG (Scalable Vector Graphics) art and animation with a WebKit web view ➤➤➤
Stars: ✭ 789 (+5535.71%)
Mutual labels:  path
Web File Uploader
A simple tool to let people upload and share images and files
Stars: ✭ 26 (+85.71%)
Mutual labels:  file
Etree
parse and generate XML easily in go
Stars: ✭ 763 (+5350%)
Mutual labels:  path
Get File
CLI and API to get a single file from Github repository.
Stars: ✭ 9 (-35.71%)
Mutual labels:  file
Send
Streaming static file server with Range and conditional-GET support
Stars: ✭ 696 (+4871.43%)
Mutual labels:  file
Xml Comp
Compare ANY markup documents.
Stars: ✭ 16 (+14.29%)
Mutual labels:  file
Lfilepicker
Android 检索手机目录方式的文件选择器,轻量且界面友好,定制性高。This is a lightweight file selector, it can select files by retrieve phone directory
Stars: ✭ 924 (+6500%)
Mutual labels:  file
Three.js Pathtracing Renderer
Real-time PathTracing with global illumination and progressive rendering, all on top of the Three.js WebGL framework. Click here for Live Demo: https://erichlof.github.io/THREE.js-PathTracing-Renderer/Geometry_Showcase.html
Stars: ✭ 872 (+6128.57%)
Mutual labels:  path

resolve-dir NPM version NPM downloads Linux Build Status

Resolve a directory that is either local, global or in the user's home directory.

Install

Install with npm:

$ npm install --save resolve-dir

Usage

var resolve = require('resolve-dir');

Returns a local directory path unchanged

resolve('a')
//=> 'a'

Resolves the path to user home

resolve('~')
//=> '/Users/jonschlinkert'
resolve('~/foo')
//=> '/Users/jonschlinkert/foo'

Resolves the path to global npm modules

resolve('@')
//=> '/usr/local/lib/node_modules'
resolve('@/foo')
//=> '/usr/local/lib/node_modules/foo'

About

Related projects

  • expand-tilde: Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the… more | homepage
  • findup-sync: Find the first file matching a given pattern in the current directory or the nearest… more | homepage
  • resolve-modules: Resolves local and global npm modules that match specified patterns, and returns a configuration object… more | homepage

Contributing

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

Building docs

(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)

To generate the readme and API documentation with verb:

$ npm install -g verb verb-generate-readme && verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.


This file was generated by verb-generate-readme, v0.2.0, on October 18, 2016.

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].