Whether the filepath is a absolute file path.
import { isAbsolute } from "https://deno.land/std/path/mod.ts";
import isAbsolute from "https://deno.land/x/is_absolute/mod.ts";
// return true
isAbsolute('/home/foo')
isAbsolute('/home/foo/..')
isAbsolute('/')
isAbsolute('//')
isAbsolute('//foo')
isAbsolute('c:\\')
isAbsolute('c:/')
isAbsolute('c://')
isAbsolute('C:/Users/')
isAbsolute('C:\\Users\\')
// return false
isAbsolute("bar/")
isAbsolute("./baz")
isAbsolute("c")
isAbsolute("c;")
isAbsolute("C:cwd/another")
isAbsolute("C:cwd\\another")
isAbsolute("foo/bar")
isAbsolute("foo\\bar")
deno_is_absolute is released under the MIT License. See the bundled LICENSE file for details.