Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/drake/lib/tasks.ts>normalizePath

Drake is a make-like task runner for Deno.
Latest
function normalizePath
import { normalizePath } from "https://deno.land/x/drake@v1.7.0/lib/tasks.ts";

The path name is normalized and, if necessary, prefixed with a period and path separator to distinguish it from non-file task name.

normalizePath("hello-world")   // "./hello-world"
normalizePath("./lib/io.ts")   // "lib/io.ts"

Parameters

name: string

Returns

string