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

x/drake/lib/tasks.ts>isNormalTask

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

Return true if name is a normal task name. Normal task names contain one or more alphanumeric, underscore and hyphen characters and cannot start with a hyphen.

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

Parameters

name: string

Returns

boolean