Socket
Socket
Sign inDemoInstall

untildify

Package Overview
Dependencies
0
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.2 to 3.0.3

6

index.js
'use strict';
const os = require('os');
const home = os.homedir();
const home = require('os').homedir();
module.exports = str => {

@@ -10,3 +10,3 @@ if (typeof str !== 'string') {

return home ? str.replace(/^~($|\/|\\)/, `${home}$1`) : str;
return home ? str.replace(/^~(?=$|\/|\\)/, home) : str;
};
{
"name": "untildify",
"version": "3.0.2",
"version": "3.0.3",
"description": "Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev",

@@ -5,0 +5,0 @@ "license": "MIT",

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