Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 422 Bytes

.verb.md

File metadata and controls

30 lines (23 loc) · 422 Bytes

Usage

var resolve = require('{%= name %}');

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'