Socket
Socket
Sign inDemoInstall

expand-tilde

Package Overview
Dependencies
1
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.2.0

5

index.js

@@ -8,2 +8,3 @@ /*!

var path = require('path');
var userhome = require('user-home');

@@ -14,7 +15,7 @@

if (fp.charCodeAt(1) === 43 /* + */) {
return process.cwd() + '/' + fp.slice(2);
return path.join(process.cwd(), fp.slice(2));
}
return userhome ? (userhome + '/' + fp.slice(1)) : fp;
return userhome ? path.join(userhome, fp.slice(1)) : fp;
}
return fp;
};

2

package.json
{
"name": "expand-tilde",
"description": "Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.",
"version": "1.1.0",
"version": "1.2.0",
"homepage": "https://github.com/jonschlinkert/expand-tilde",

@@ -6,0 +6,0 @@ "author": {

@@ -54,4 +54,4 @@ # expand-tilde [![NPM version](https://badge.fury.io/js/expand-tilde.svg)](http://badge.fury.io/js/expand-tilde)

_This file was generated by [verb](https://github.com/assemble/verb) on January 19, 2015._
_This file was generated by [verb](https://github.com/assemble/verb) on January 21, 2015._
[docs]: https://www.gnu.org/software/bash/manual/html_node/Tilde-Expansion.html
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc