path.resolve

It can take a single "to" parameter : http://nodejs.org/docs/latest/api/path.html#path_path_resolve_from_to and in fact that is *the* way you get "Absolute paths" in node
This commit is contained in:
basarat
2013-08-04 16:07:49 +10:00
parent 2089d27c7f
commit 79dc2f4c35

1
node/node.d.ts vendored
View File

@@ -808,6 +808,7 @@ declare module "fs" {
declare module "path" {
export function normalize(p: string): string;
export function join(...paths: any[]): string;
export function resolve(to: string);
export function resolve(from: string, to: string): string;
export function resolve(from: string, from2: string, to: string): string;
export function resolve(from: string, from2: string, from3: string, to: string): string;