{"id":15658694,"url":"https://github.com/jonschlinkert/is-absolute","last_synced_at":"2025-06-22T18:35:18.525Z","repository":{"id":18355438,"uuid":"21535443","full_name":"jonschlinkert/is-absolute","owner":"jonschlinkert","description":"Returns true if a filepath is absolute. The original path-is-absolute.","archived":false,"fork":false,"pushed_at":"2017-07-13T08:05:44.000Z","size":32,"stargazers_count":22,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-10T11:12:49.341Z","etag":null,"topics":["absolute","filepath","is-absolute","javascript","nodejs","path","path-is-absolute"],"latest_commit_sha":null,"homepage":"https://github.com/jonschlinkert","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonschlinkert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-06T07:15:51.000Z","updated_at":"2024-07-19T21:08:03.000Z","dependencies_parsed_at":"2022-08-31T00:01:47.566Z","dependency_job_id":null,"html_url":"https://github.com/jonschlinkert/is-absolute","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/jonschlinkert/is-absolute","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-absolute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-absolute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-absolute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-absolute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert","download_url":"https://codeload.github.com/jonschlinkert/is-absolute/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-absolute/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261344468,"owners_count":23144868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["absolute","filepath","is-absolute","javascript","nodejs","path","path-is-absolute"],"created_at":"2024-10-03T13:13:32.259Z","updated_at":"2025-06-22T18:35:13.496Z","avatar_url":"https://github.com/jonschlinkert.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-absolute [![NPM version](https://img.shields.io/npm/v/is-absolute.svg?style=flat)](https://www.npmjs.com/package/is-absolute) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-absolute.svg?style=flat)](https://npmjs.org/package/is-absolute) [![NPM total downloads](https://img.shields.io/npm/dt/is-absolute.svg?style=flat)](https://npmjs.org/package/is-absolute) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-absolute.svg?style=flat\u0026label=Travis)](https://travis-ci.org/jonschlinkert/is-absolute)\n\n\u003e Returns true if a file path is absolute. Does not rely on the path module and can be used as a polyfill for node.js native `path.isAbolute`.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save is-absolute\n```\n\nOriginally based on the `isAbsolute` utility method in [express](https://github.com/visionmedia/express).\n\n## Usage\n\n```js\nvar isAbsolute = require('is-absolute');\n\nisAbsolute('a/b/c.js');\n//=\u003e 'false'\nisAbsolute('/a/b/c.js');\n//=\u003e 'true'\n```\n\n**Explicitly test windows paths**\n\n```js\nisAbsolute.posix('/foo/bar');\nisAbsolute.posix('/user/docs/Letter.txt');\n//=\u003e true\n\nisAbsolute.posix('foo/bar');\n//=\u003e false\n```\n\n**Explicitly test windows paths**\n\n```js\nvar isAbsolute = require('is-absolute');\n\nisAbsolute.win32('c:\\\\');\nisAbsolute.win32('//C://user\\\\docs\\\\Letter.txt');\nisAbsolute.win32('\\\\\\\\unc\\\\share');\nisAbsolute.win32('\\\\\\\\unc\\\\share\\\\foo');\nisAbsolute.win32('\\\\\\\\unc\\\\share\\\\foo\\\\');\nisAbsolute.win32('\\\\\\\\unc\\\\share\\\\foo\\\\bar');\nisAbsolute.win32('\\\\\\\\unc\\\\share\\\\foo\\\\bar\\\\');\nisAbsolute.win32('\\\\\\\\unc\\\\share\\\\foo\\\\bar\\\\baz');\n//=\u003e true\n\nisAbsolute.win32('a:foo/a/b/c/d');\nisAbsolute.win32(':\\\\');\nisAbsolute.win32('foo\\\\bar\\\\baz');\nisAbsolute.win32('foo\\\\bar\\\\baz\\\\');\n//=\u003e false\n```\n\n## About\n\n### Related projects\n\n* [is-dotfile](https://www.npmjs.com/package/is-dotfile): Return true if a file path is (or has) a dotfile. Returns false if the… [more](https://github.com/jonschlinkert/is-dotfile) | [homepage](https://github.com/jonschlinkert/is-dotfile \"Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.\")\n* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob \"Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet\")\n* [is-relative](https://www.npmjs.com/package/is-relative): Returns `true` if the path appears to be relative. | [homepage](https://github.com/jonschlinkert/is-relative \"Returns `true` if the path appears to be relative.\")\n* [is-unc-path](https://www.npmjs.com/package/is-unc-path): Returns true if a filepath is a windows UNC file path. | [homepage](https://github.com/jonschlinkert/is-unc-path \"Returns true if a filepath is a windows UNC file path.\")\n* [is-valid-glob](https://www.npmjs.com/package/is-valid-glob): Return true if a value is a valid glob pattern or patterns. | [homepage](https://github.com/jonschlinkert/is-valid-glob \"Return true if a value is a valid glob pattern or patterns.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 35 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 1 | [es128](https://github.com/es128) |\n| 1 | [shinnn](https://github.com/shinnn) |\n| 1 | [Sobak](https://github.com/Sobak) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme \u0026\u0026 verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install \u0026\u0026 npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on July 13, 2017._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fis-absolute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonschlinkert%2Fis-absolute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fis-absolute/lists"}