{"id":15136342,"url":"https://github.com/nextcloud-libraries/nextcloud-paths","last_synced_at":"2025-04-24T00:23:46.388Z","repository":{"id":37050749,"uuid":"192485392","full_name":"nextcloud-libraries/nextcloud-paths","owner":"nextcloud-libraries","description":"Path helpers for Nextcloud https://npmjs.org/@nextcloud/paths","archived":false,"fork":false,"pushed_at":"2025-04-12T01:24:41.000Z","size":3471,"stargazers_count":5,"open_issues_count":6,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T02:40:00.900Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://nextcloud-libraries.github.io/nextcloud-paths/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nextcloud-libraries.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-18T07:07:59.000Z","updated_at":"2025-04-12T01:23:20.000Z","dependencies_parsed_at":"2023-08-28T13:43:36.250Z","dependency_job_id":"f77e4369-4bd4-4d2b-b8a9-5a3c7ba00596","html_url":"https://github.com/nextcloud-libraries/nextcloud-paths","commit_stats":{"total_commits":566,"total_committers":9,"mean_commits":"62.888888888888886","dds":"0.41696113074204944","last_synced_commit":"e5b4098c53707e40e548eca9abd8ce42cd2cc909"},"previous_names":["nextcloud-libraries/nextcloud-paths","nextcloud/nextcloud-paths"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud-libraries%2Fnextcloud-paths","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud-libraries%2Fnextcloud-paths/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud-libraries%2Fnextcloud-paths/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud-libraries%2Fnextcloud-paths/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextcloud-libraries","download_url":"https://codeload.github.com/nextcloud-libraries/nextcloud-paths/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250536483,"owners_count":21446743,"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-09-26T06:21:02.253Z","updated_at":"2025-04-24T00:23:46.361Z","avatar_url":"https://github.com/nextcloud-libraries.png","language":"TypeScript","readme":"\u003c!--\n  - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n  - SPDX-License-Identifier: GPL-3.0-or-later\n--\u003e\n# @nextcloud/paths\n\n[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud-libraries/nextcloud-paths)](https://api.reuse.software/info/github.com/nextcloud-libraries/nextcloud-paths)\n[![npm](https://img.shields.io/npm/v/@nextcloud/paths.svg)](https://www.npmjs.com/package/@nextcloud/paths)\n[![Documentation](https://img.shields.io/badge/Documentation-online-brightgreen)](https://nextcloud-libraries.github.io/nextcloud-paths/)\n\nPath helpers for Nextcloud apps.\n\n## Installation\n\n```\nnpm i -S @nextcloud/paths\n```\n\n## Usage\n\n```js\nimport { basename, dirname, encodePath, isSamePath, joinPaths } from '@nextcloud/paths'\n\nbasename('/my/file.txt')\n// -\u003e 'file.txt'\n\ndirname('/my/file.txt')\n// -\u003e '/my'\n\nencodePath('/my/other file.txt')\n// -\u003e '/my/other%20file'\n\nisSamePath('/my/file.txt', 'my/file.txt')\n// -\u003e true\n\njoinPaths('/my', 'folder', 'file.txt')\n// -\u003e '/my/folder/file.txt'\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextcloud-libraries%2Fnextcloud-paths","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextcloud-libraries%2Fnextcloud-paths","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextcloud-libraries%2Fnextcloud-paths/lists"}