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

x/drake/lib/tasks.ts>isFileTask

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

Return true if name is a file task name. File task names are valid file paths.

isFileTask("io.ts")          // true
isFileTask("hello-world")    // false
isFileTask("./hello-world")  // true

Parameters

name: string

Returns

boolean