https://github.com/justjavac/deno_is_absolute
[deprecated] Whether the filepath is a absolute file path.
https://github.com/justjavac/deno_is_absolute
deno deno-mod deno-module deno-modules filesystem path
Last synced: about 1 month ago
JSON representation
[deprecated] Whether the filepath is a absolute file path.
- Host: GitHub
- URL: https://github.com/justjavac/deno_is_absolute
- Owner: justjavac
- License: mit
- Created: 2020-08-24T02:58:57.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-24T03:04:56.000Z (almost 6 years ago)
- Last Synced: 2024-10-06T01:22:15.825Z (over 1 year ago)
- Topics: deno, deno-mod, deno-module, deno-modules, filesystem, path
- Language: TypeScript
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# deno_is_absolute [deprecated]
[](https://github.com/justjavac/deno_is_absolute/releases)
[](https://github.com/justjavac/deno_is_absolute/actions)
[](https://github.com/justjavac/deno_is_absolute/blob/master/LICENSE)
Whether the filepath is a **absolute** file path.
⚠️ **Please Use Deno Standard Library.**
```ts
import { isAbsolute } from "https://deno.land/std/path/mod.ts";
```
## Usage
```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")
```
## License
[deno_is_absolute](https://github.com/justjavac/deno_is_absolute) is released under the MIT License. See the bundled [LICENSE](./LICENSE) file for details.