BLUE
PHP 7.4.33
Path:
/var/www/podio-api-client/node_modules/create-require
Run
Logout
Edit File
Size: 1.39 KB
Close
/var/www/podio-api-client/node_modules/create-require/README.md
Text
Base64
# `create-require` [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![Github Actions][github-actions-src]][github-actions-href] [![Codecov][codecov-src]][codecov-href] Polyfill for Node.js [`module.createRequire`](https://nodejs.org/api/modules.html#modules_module_createrequire_filename) (<= v12.2.0) ## Install ```sh yarn add create-require npm install create-require ``` ## Usage ```ts function createRequire (filename: string | URL): NodeRequire; ``` ```js const createRequire = require('create-require') const myRequire = createRequire('path/to/test.js') const myModule = myRequire('./test-sibling-module') ``` ## License [MIT](./LICENSE) <!-- Badges --> [npm-version-src]: https://img.shields.io/npm/v/create-require?style=flat-square [npm-version-href]: https://npmjs.com/package/create-require [npm-downloads-src]: https://img.shields.io/npm/dm/create-require?style=flat-square [npm-downloads-href]: https://npmjs.com/package/create-require [github-actions-src]: https://img.shields.io/github/workflow/status/nuxt-contrib/create-require/test/master?style=flat-square [github-actions-href]: https://github.com/nuxt-contrib/create-require/actions?query=workflow%3Atest [codecov-src]: https://img.shields.io/codecov/c/gh/nuxt-contrib/create-require/master?style=flat-square [codecov-href]: https://codecov.io/gh/nuxt-contrib/create-require
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
CHANGELOG.md
1.31 KB
lrw-r--r--
2023-12-27 12:33:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
create-require.d.ts
105 B
lrw-r--r--
2023-12-27 12:33:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
create-require.js
1.21 KB
lrw-r--r--
2023-12-27 12:33:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE
1.13 KB
lrw-r--r--
2023-12-27 12:33:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
983 B
lrw-r--r--
2023-12-27 12:33:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
1.39 KB
lrw-r--r--
2023-12-27 12:33:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).