initial
This commit is contained in:
22
ts/index.ts
Normal file
22
ts/index.ts
Normal 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;
|
Reference in New Issue
Block a user