Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "home", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Gets the home dir or resolves home directories: `home.resolve('~/path/to')`.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,3 +16,4 @@ # home [![NPM version](https://badge.fury.io/js/home.svg)](http://badge.fury.io/js/home) [![Build Status](https://travis-ci.org/kaelzhang/node-home.svg?branch=master)](https://travis-ci.org/kaelzhang/node-home) [![Dependency Status](https://gemnasium.com/kaelzhang/node-home.svg)](https://gemnasium.com/kaelzhang/node-home) | ||
home(); // '/Users/kael' | ||
home(); // '/Users/kael' | ||
home.resolve('~'); // '/Users/kael' | ||
@@ -41,2 +42,5 @@ var some_path = '~/workspace'; | ||
```js | ||
home.resolve(); | ||
// -> current directory | ||
home.resolve('foo/bar', '~/file/', '..', 'a/../subfile'); | ||
@@ -43,0 +47,0 @@ // -> '/Users/kael/subfile' |
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
9401
81