This commit is contained in:
Phil Kunz
2015-09-25 23:05:25 +02:00
parent 97d9e9addc
commit 0aadef013e
12 changed files with 2203 additions and 0 deletions

22
ts/index.ts Normal file
View File

@@ -0,0 +1,22 @@
/// <reference path="typings/tsd.d.ts" />
var path = require("path");
var bl = require("beautylog");
/**
*
* @type {{getPath: (function(any): undefined)}}
*/
var smartpath:any = {
getAbsPath: function(varPath,logBool = false) {
var absPath = path.resolve(varPath);
if (logBool == true) {
bl.log('varPath is' + varPath);
bl.log('absPath is' + absPath);
}
return absPath;
}
};
module.exports = smartpath;