{"id":18997693,"url":"https://github.com/s0/ts-util","last_synced_at":"2026-05-15T11:34:59.621Z","repository":{"id":44218261,"uuid":"193166218","full_name":"s0/ts-util","owner":"s0","description":"Collection of small TypeScript npm utility packages, including get-relative-path","archived":false,"fork":false,"pushed_at":"2022-12-03T14:42:44.000Z","size":333,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2026-01-15T12:42:17.766Z","etag":null,"topics":["npm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/s0.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":"2019-06-21T22:19:52.000Z","updated_at":"2024-10-12T09:08:14.000Z","dependencies_parsed_at":"2023-01-23T04:46:01.643Z","dependency_job_id":null,"html_url":"https://github.com/s0/ts-util","commit_stats":null,"previous_names":["samlanning/ts-util"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/s0/ts-util","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s0%2Fts-util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s0%2Fts-util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s0%2Fts-util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s0%2Fts-util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s0","download_url":"https://codeload.github.com/s0/ts-util/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s0%2Fts-util/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33065584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["npm"],"created_at":"2024-11-08T17:42:11.400Z","updated_at":"2026-05-15T11:34:59.600Z","avatar_url":"https://github.com/s0.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Various utility methods for JavaScript / TypeScript\n\n[![Build Status](https://dev.azure.com/samlanning/general/_apis/build/status/ts-util?branchName=master)](https://dev.azure.com/samlanning/general/_build/latest?definitionId=4\u0026branchName=master) [![Total alerts](https://img.shields.io/lgtm/alerts/g/samlanning/ts-util.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/samlanning/ts-util/alerts/) [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/samlanning/ts-util.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/samlanning/ts-util/context:javascript)\n\nThese packages are all implemented using pure TypeScript, and they can be easily included in frontend code using bundlers like webpack etc..\n\n## [get-relative-path](get-relative-path)\n\n[![](https://img.shields.io/npm/v/get-relative-path)](https://www.npmjs.com/package/get-relative-path)\n\nSimilar to Node.js's [path.relative()](https://nodejs.org/api/path.html#path_path_relative_from_to)\nbut works outside the context of a filesystem, and assumes\nall paths are POSIX-style.\nSo this also works for URL pathnames.\n\nYou can easily use this package by installing it in your Node.js project:\n\n```\n\u003e npm install get-relative-path\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs0%2Fts-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs0%2Fts-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs0%2Fts-util/lists"}