Skip to content

some missing but useful functions

Notifications You must be signed in to change notification settings

kia-nasirzadeh/handyJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

hf.pathToPs(path, separator)

no more worry about working with PowerShell from node child_process. e.g. :

let path = hf.pathToPs('C:/Users/ashkan nasirzadeh/check.ps1', '/');
//path: C:\"Users"\"ashkan nasirzadeh"\"check.ps1"
child = spawn("powershell.exe",[path]);

leave 'separator' parameter and it will use default DirectorySeparator by OS (like path module) (const os = require('os') needed)

About

some missing but useful functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published