file-name-fixer
Advanced tools
Comparing version 1.0.0 to 1.0.1
14
index.js
@@ -1,5 +0,7 @@ | ||
// var texturepack = require('./tps/texturepack') | ||
#! /usr/bin/env node | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var decamelize = require('decamelize'); | ||
const colors = require('colors'); // eslint-disable-line | ||
@@ -31,3 +33,3 @@ let count = 0; | ||
fs.renameSync(fullPath, fullRenamePath) | ||
console.log('Renamed: ' + fullPath + ' to ' + fullRenamePath) | ||
console.log( ('Renamed: ' + fullPath + ' to ' + fullRenamePath).red ); | ||
} | ||
@@ -56,7 +58,7 @@ } | ||
const inputDir = process.argv[2]//args.path; | ||
const inputDir = process.argv[2]; | ||
if(!inputDir) | ||
{ | ||
console.log('please provide a path') | ||
console.log('please provide a path'.red) | ||
} | ||
@@ -69,8 +71,8 @@ else | ||
{ | ||
console.log(count + ' files names fixed.') | ||
console.log(count + ' files names fixed.'.green) | ||
} | ||
else | ||
{ | ||
console.log('all file names are valid, well done goodboy!') | ||
console.log('all file names are valid, well done goodboy!'.green) | ||
} | ||
} |
{ | ||
"name": "file-name-fixer", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Finds invalid file names and renames them.", | ||
"main": "index.js", | ||
"bin": { | ||
"fix-file-names": "./index.js" | ||
}, | ||
"scripts": { | ||
@@ -22,3 +25,7 @@ "test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"homepage": "https://github.com/Goodboy-Digital/file-name-fixer#readme" | ||
"homepage": "https://github.com/Goodboy-Digital/file-name-fixer#readme", | ||
"dependencies": { | ||
"colors": "^1.1.2", | ||
"decamelize": "^2.0.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4158
59
2
+ Addedcolors@^1.1.2
+ Addeddecamelize@^2.0.0
+ Addedcolors@1.4.0(transitive)
+ Addeddecamelize@2.0.0(transitive)
+ Addedxregexp@4.0.0(transitive)