Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

home

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

home - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

package.json
{
"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'

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc