Gathering detailed insights and metrics for unixify
Gathering detailed insights and metrics for unixify
Convert a windows file path to a unix-style file path.
npm install unixify
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.6
Supply Chain
96.3
Quality
77.2
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
580,858,149
Last Day
707,581
Last Week
3,009,446
Last Month
13,034,060
Last Year
174,329,040
44 Stars
6 Commits
5 Forks
3 Watching
1 Branches
2 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.0
Package Id
unixify@1.0.0
Size
2.79 kB
NPM Version
4.2.0
Node Version
7.7.3
Publised On
15 Apr 2017
Cumulative downloads
Total Downloads
Last day
0.7%
707,581
Compared to previous day
Last week
-12.3%
3,009,446
Compared to previous week
Last month
3.2%
13,034,060
Compared to previous month
Last year
14%
174,329,040
Compared to previous year
1
2
Convert Windows file paths to unix paths.
Install with npm:
1$ npm install --save unixify
Install with yarn:
1$ yarn add unixify
1var unixify = require('unixify'); 2unixify(filepath[, stripTrailingSlash]);
Strips leading drive letters and dot-slash (./
)
1unixify('.\\one\\two\\three'); //=> 'one/two/three' 2unixify('./one/two/three'); //=> 'one/two/three' 3unixify('C:\\one\\two\\three'); //=> '/one/two/three' 4unixify('\\one\\two\\three'); //=> '/one/two/three'
Normalizes path separators to forward slashes
1unixify('one\\two\\three'); //=> 'one/two/three' 2unixify('\\one\\two\\three'); //=> '/one/two/three' 3unixify('C:\\one\\two\\three'); //=> '/one/two/three'
Combines multiple consecutive slashes
1unixify('one//two//////three'), //=> 'one/two/three' 2unixify('\\one\\two\\//three'); //=> '/one/two/three' 3unixify('C:\\//one\\two\\//three'); //=> '/one/two/three'
Strips trailing slashes by default
1unixify('one//two//////three//'), //=> 'one/two/three' 2unixify('C:\\one\\two\\three\\'); //=> '/one/two/three'
Keep trailing slashes
By passing false
as the second argument
1unixify('one//two//////three//'), //=> 'one/two/three/' 2unixify('C:\\one\\two\\three\\'); //=> '/one/two/three/'
true
if the given string
or array
ends with suffix
using strict equality for… more | homepagepath.isAbolute
. Returns true if a file path is absolute. | homepagetrue
if a file path ends with the given string/suffix. | homepagePull requests and stars are always welcome. For bugs and feature requests, please create an issue.
(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)
To generate the readme, run the following command:
1$ npm install -g verbose/verb#dev verb-generate-readme && verb
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
1$ npm install && npm test
Jon Schlinkert
Copyright © 2017, Jon Schlinkert. Released under the MIT License.
This file was generated by verb-generate-readme, v0.5.0, on April 14, 2017.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More