lib/core.js
function $path(params) {
    if (params == null) {
        return params;
    }
    if (typeof params === 'string') {
        const path = require('path');
        if (path.isAbsolute(params)) {
            return params;
        }

        return path.resolve(process.cwd(), params);
    }
    throw new Error('$path expects a string');
}
function $path(params) {
    if (params == null) {
        return params;
    }
    if (typeof params === 'string') {
        const path = require('path');
        if (path.isAbsolute(params)) {
            return params;
        }

        return path.resolve(process.cwd(), params);
    }
    throw new Error('$path expects a string');
}
function $path ( params ) { if ( params == null ) { return params ; } if ( typeof params === 'string' ) { const path = require ( 'path' ) ; if ( path . isAbsolute ( params ) ) { return params ; } return path . resolve ( process . cwd ( ) , params ) ; } throw new Error ( '$path expects a string' ) ; }
Resolve the path to absolute from current working directory

@param {string} params
@returns {string}
Resolve the path to absolute from current working directory