{"id":19979223,"url":"https://github.com/bharathvaj-ganesan/effortless-require","last_synced_at":"2026-05-09T20:22:22.062Z","repository":{"id":57219856,"uuid":"115033709","full_name":"bharathvaj-ganesan/effortless-require","owner":"bharathvaj-ganesan","description":"Effortlessly require node modules. No more multiple requires in code. :smile: :100:","archived":false,"fork":false,"pushed_at":"2017-12-31T17:52:45.000Z","size":166,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T10:27:17.694Z","etag":null,"topics":["easy-to-use","hacktoberfest","nodejs-modules","npm-package","require"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/effortless-require","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/bharathvaj-ganesan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-21T18:08:56.000Z","updated_at":"2020-10-03T10:52:43.000Z","dependencies_parsed_at":"2022-08-28T23:22:35.850Z","dependency_job_id":null,"html_url":"https://github.com/bharathvaj-ganesan/effortless-require","commit_stats":null,"previous_names":["bharathvaj1995/effortless-require"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bharathvaj-ganesan%2Feffortless-require","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bharathvaj-ganesan%2Feffortless-require/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bharathvaj-ganesan%2Feffortless-require/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bharathvaj-ganesan%2Feffortless-require/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bharathvaj-ganesan","download_url":"https://codeload.github.com/bharathvaj-ganesan/effortless-require/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241412712,"owners_count":19958973,"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":["easy-to-use","hacktoberfest","nodejs-modules","npm-package","require"],"created_at":"2024-11-13T03:37:13.861Z","updated_at":"2026-05-09T20:22:17.036Z","avatar_url":"https://github.com/bharathvaj-ganesan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\r\n\t\u003cbr\u003e\r\n\t\u003cimg width=\"350\" src=\"./media/effortless-require.png\"\u003e\r\n\t\u003cbr\u003e\r\n\u003c/h1\u003e\r\n\r\n[![Build Status](https://img.shields.io/travis/bharathvaj1995/effortless-require.svg)](https://travis-ci.org/bharathvaj1995/effortless-require)\r\n[![Coverage Status](https://img.shields.io/codecov/c/github/bharathvaj1995/effortless-require.svg)](https://codecov.io/gh/bharathvaj1995/effortless-require)\r\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\r\n[![Bharath Rule](https://img.shields.io/badge/bharath-100%25-brightgreen.svg)](https://github.com/bharathvaj1995)\r\n\r\n## effortless-require\r\nEffortlessly require node libraries, providing a more flexible way of requiring libraries and modules in your project.\r\n\r\n## Installation\r\n```\r\n$ npm install effortless-require --save\r\n```\r\n\r\n## Features\r\n* Require only once, at your application's start, and it will be globally available, everywhere.\r\n* Say goodbye to ugly relative paths.\r\n\r\n## Usage\r\n```javascript\r\n\r\n// Node Packages\r\n// Before\r\nconst express = require('express');\r\nconst moment = require('moment');\r\n\r\n// Now\r\nrequire('effortless-require')();\r\nconst [express, moment] = need('express', 'moment');\r\n});\r\n\r\n// Relative JS modules\r\n// Before\r\nconst moduleOne = require('../../modules/path/to/moduleOne');\r\nconst moduleTwo = require('../../../modules/path/to/moduleTwo');\r\n\r\n// Now\r\nrequire('effortless-require')({ basePath: __dirname }) // Set `basePath` to your project's root folder, for example.\r\nconst [\r\n  moduleOne,\r\n  moduleTwo\r\n] = need('path/to/moduleOne', 'path/to/moduleTwo');\r\n```\r\n\r\n## License\r\n\r\nMIT © [Bharathvaj Ganesan](https://github.com/bharathvaj1995)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbharathvaj-ganesan%2Feffortless-require","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbharathvaj-ganesan%2Feffortless-require","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbharathvaj-ganesan%2Feffortless-require/lists"}