{"id":19419671,"url":"https://github.com/rwu823/path-is-root","last_synced_at":"2025-04-24T14:31:55.563Z","repository":{"id":8624086,"uuid":"59088953","full_name":"rwu823/path-is-root","owner":"rwu823","description":"Check if a path is root in Node","archived":false,"fork":false,"pushed_at":"2023-12-15T02:30:50.000Z","size":3,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T06:13:05.338Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/rwu823/path-is-root","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rwu823.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-18T06:41:49.000Z","updated_at":"2021-07-08T06:06:12.000Z","dependencies_parsed_at":"2024-06-18T21:26:38.725Z","dependency_job_id":"c70d1c11-101d-4ab0-b394-efa3cea21a09","html_url":"https://github.com/rwu823/path-is-root","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"dfe0df48665debd5fa025fc3823ce717528cb7f8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwu823%2Fpath-is-root","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwu823%2Fpath-is-root/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwu823%2Fpath-is-root/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwu823%2Fpath-is-root/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rwu823","download_url":"https://codeload.github.com/rwu823/path-is-root/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250643464,"owners_count":21464180,"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":[],"created_at":"2024-11-10T13:18:36.775Z","updated_at":"2025-04-24T14:31:55.305Z","avatar_url":"https://github.com/rwu823.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://img.shields.io/travis/rwu823/path-is-root.svg?branch=master)](https://travis-ci.org/rwu823/path-is-root) [![Coverage](https://img.shields.io/coveralls/rwu823/path-is-root.svg)](https://coveralls.io/github/rwu823/path-is-root)\n\n# path-is-root\n\ncheck if a path is root\n\n## Install\n```javascript\nnpm install --save path-is-root\n```\n\n## Usage\n```javascript\nimport isRoot from 'path-is-root'\n  \ntest('should be root path in Unix', assert =\u003e {\n  assert.is(isRoot('/'), true)\n})\n\ntest('should be not root path in Unix', assert =\u003e {\n  assert.is(isRoot('/x'), false)\n})\n\ntest('should be root path in Win', assert =\u003e {\n  assert.is(isRoot('C:/'), true)\n})\n\ntest('should be not root path in Win', assert =\u003e {\n  assert.is(isRoot('C:/x'), false)\n})\n```\n\n## API \n\n### isRoot(path)\n\nReturns a boolean of whether the path is root\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwu823%2Fpath-is-root","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frwu823%2Fpath-is-root","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwu823%2Fpath-is-root/lists"}