nope-js-node
Version:
NoPE Runtime for Nodejs. For Browser-Support please use nope-browser
35 lines (34 loc) • 1.05 kB
TypeScript
/**
* @author Martin Karkowski
* @email m.karkowski@zema.de
* @desc [description]
*/
/**
* Converts the path to a correct path.
* @param {string} path
* @returns {string} The Path
*/
export declare function convertPath(path: string): string;
/**
* Helper to convert the segments of a path to a valid var name.
*
* @param {string} path The Path to adapt
* @returns {string} The Adapted path.
*/
export declare function varifyPath(path: string): string;
/**
* Returns the least common segmet of all pathes, included in the pathes array.
*
* The Following options are available.
*
* "considerSingleLevel":boolean -> allows "singlelevel"-wildcards in the segments
* "considerMultiLevel":boolean -> allows "multilevel"-wildcards in the segments
*
* @param pathes The Segments to compare
* @param opts Additional Options.
* @returns
*/
export declare function getLeastCommonPathSegment(pathes: string[], opts?: {
considerSingleLevel?: boolean;
considerMultiLevel?: boolean;
}): string | false;