Socket
Socket
Sign inDemoInstall

untildify

Package Overview
Dependencies
1
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 2.0.0

license

6

index.js

@@ -5,3 +5,7 @@ 'use strict';

module.exports = function (str) {
return userHome ? str.replace(/^~\//, userHome + '/') : str;
if (typeof str !== 'string') {
throw new TypeError('Expected a string');
}
return userHome ? str.replace(/^~($|\/|\\)/, userHome + '$1') : str;
};

14

package.json
{
"name": "untildify",
"version": "1.0.0",
"version": "2.0.0",
"description": "Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev",

@@ -12,2 +12,5 @@ "license": "MIT",

},
"contributors": [
"silverwind <me@silverwind.io> (https://silverwind.io)"
],
"engines": {

@@ -24,2 +27,4 @@ "node": ">=0.10.0"

"tilde",
"expansion",
"expand",
"untildify",

@@ -30,4 +35,5 @@ "path",

"directory",
"expand",
"user"
"user",
"shell",
"bash"
],

@@ -38,4 +44,4 @@ "dependencies": {

"devDependencies": {
"ava": "0.0.3"
"ava": "0.0.4"
}
}
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