{"id":17766607,"url":"https://github.com/floatdrop/require-or-die","last_synced_at":"2025-08-01T11:02:18.059Z","repository":{"id":19909568,"uuid":"23175131","full_name":"floatdrop/require-or-die","owner":"floatdrop","description":"Require common-js modules and js files that return values","archived":false,"fork":false,"pushed_at":"2015-04-15T11:22:42.000Z","size":200,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T22:32:19.126Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/floatdrop.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}},"created_at":"2014-08-21T05:14:04.000Z","updated_at":"2015-04-15T11:22:42.000Z","dependencies_parsed_at":"2022-08-24T17:50:53.016Z","dependency_job_id":null,"html_url":"https://github.com/floatdrop/require-or-die","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Frequire-or-die","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Frequire-or-die/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Frequire-or-die/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Frequire-or-die/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floatdrop","download_url":"https://codeload.github.com/floatdrop/require-or-die/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246651508,"owners_count":20811991,"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-10-26T20:33:06.255Z","updated_at":"2025-04-01T13:45:14.609Z","avatar_url":"https://github.com/floatdrop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# require-or-die\n\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url]\n\nRequires common.js modules as well as simple js files, that returns values.\n\n## Usage\n\n```js\nvar rod = require('require-or-die');\n\nrod('./sample.js', function (err, value) {\n    console.log(value);\n})\n```\n\n### API\n\n#### require(path, [options], callback)\n\n###### path\nType: `String`\n\nPath to required file (will be resolved by `require.resolve`).\n\n###### options\nType: `Object`\n\nOptions, that will be passed to fs.readFile.\n\n###### callback\nType: `Function`\n\nFunction, that will be called, when contents is read and processed. Signature pretty common: `function (err, value)`.\n\n\n#### require.sync(path)\n\nSame as `require`, but in sync way.\n\n## License\n\nMIT (c) 2014 Vsevolod Strukchinsky\n\n[npm-url]: https://npmjs.org/package/require-or-die\n[npm-image]: http://img.shields.io/npm/v/require-or-die.svg?style=flat\n\n[travis-url]: http://travis-ci.org/floatdrop/require-or-die\n[travis-image]: http://img.shields.io/travis/floatdrop/require-or-die.svg?branch=master\u0026style=flat\n\n[depstat-url]: https://david-dm.org/floatdrop/require-or-die\n[depstat-image]: http://img.shields.io/david/floatdrop/require-or-die.svg?style=flat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Frequire-or-die","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloatdrop%2Frequire-or-die","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Frequire-or-die/lists"}