Miss any of our Open RFC calls?Watch the recordings here! »

safepath-cli

1.0.1 • Public • Published

safepath-cli

Converts any string to safe Windows / Unix path based on the platform code runs.

Usage

Given Unix path it will convert it to Windows compatible path on Windows patform.

safepath-cli 'foo/bar'

will return:

foo\bar

Given Windows path it will convert it to Unix compatible path on Unix platform.

safepath-cli 'foo\bar'

will return:

foo/bar

Install

npm i safepath-cli

DownloadsWeekly Downloads

1

Version

1.0.1

License

GPL-3.0

Unpacked Size

38.1 kB

Total Files

6

Last publish

Collaborators

  • avatar