{"id":18256193,"url":"https://github.com/serapath/rootrelative","last_synced_at":"2025-08-16T16:47:39.485Z","repository":{"id":25876263,"uuid":"29316476","full_name":"serapath/rootrelative","owner":"serapath","description":"enable require(rootRelativePath) by using an absolute path starting from the projects root directory","archived":false,"fork":false,"pushed_at":"2015-01-20T20:12:25.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T17:42:09.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/serapath.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":"2015-01-15T20:22:48.000Z","updated_at":"2015-01-20T20:12:25.000Z","dependencies_parsed_at":"2022-08-24T14:16:09.724Z","dependency_job_id":null,"html_url":"https://github.com/serapath/rootrelative","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Frootrelative","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Frootrelative/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Frootrelative/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Frootrelative/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serapath","download_url":"https://codeload.github.com/serapath/rootrelative/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247937293,"owners_count":21021226,"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-05T10:20:31.157Z","updated_at":"2025-04-08T22:27:05.302Z","avatar_url":"https://github.com/serapath.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rootrelative\nenable require(rootRelativePath) by using an absolute path starting from the projects root directory\n`npm install rootrelative`\n\nconsider the following project structure:\n* myProject/\n  * index.js\n  * lib/\n    * index.js\n    * abc.js\n    * def.js\n    * helper/\n      * xyz.js\n\n__[xyz.js]__\n```\nvar my = require('rootrelative');\nvar\n  myProject = require(my('')),\n  abc       = require(my('lib/abc.js'),\n  lib       = require(my('lib')\n;\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Frootrelative","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserapath%2Frootrelative","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Frootrelative/lists"}