Skip to content

Commit

Permalink
Merge pull request #22 from joliss/extract
Browse files Browse the repository at this point in the history
extract ensure-posix-path
  • Loading branch information
joliss committed Nov 24, 2015
2 parents d9fd7b9 + 28fc364 commit 4db098f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
10 changes: 1 addition & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var fs = require('fs');
var MatcherCollection = require('matcher-collection');
var path = require('path');
var ensurePosix = require('ensure-posix-path');

function handleOptions(_options) {
var options = {};
Expand All @@ -23,14 +23,6 @@ function handleRelativePath(_relativePath) {
}
}

function ensurePosix(filepath) {
if (path.sep !== '/') {
return filepath.split(path.sep).join('/');
}

return filepath;
}

module.exports = walkSync;
function walkSync(baseDir, _options) {
var options = handleOptions(_options);
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"url": "https://github.com/joliss/node-walk-sync"
},
"dependencies": {
"ensure-posix-path": "^1.0.0",
"matcher-collection": "^1.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit 4db098f

Please sign in to comment.