path-convert-js

1.0.4 • Public • Published

path-converter.js

This javascript tool permit to easily convert an input path to DOS, Unix, or DOS with backslashes-escaped output path

Usage

Here is the usage as descibed by the tool itself :

Usage: path-convert 'path'

Methods: --escape : Escape backslashes in DOS --toUnix : Convert to Unix path --toDOS : Convert to DOS path

Examples: path-convert --toUnix 'C:\Users\Username\Documents' path-convert --toDOS '/home/user/documents'

Please ONLY use single-quotes when giving the path in arguments, as it work better like that.

I hope this can help you!

I used AI to debug and tune my code, but it's coded in majority by me, with some code from w3school, StackOverflow and the like. Made for Hackclub's minus-twelve YSWS

Package Sidebar

Install

npm i path-convert-js

Weekly Downloads

2

Version

1.0.4

License

GPL-3.0-only

Unpacked Size

5.37 kB

Total Files

3

Last publish

Collaborators

  • hash-ak