All Projects → unjs → create-require

unjs / create-require

Licence: other
Polyfill for Node.js module.createRequire (<= v12.2.0)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to create-require

Css Vars Ponyfill
Client-side support for CSS custom properties (aka "CSS variables") in legacy and modern browsers
Stars: ✭ 1,166 (+4758.33%)
Mutual labels:  polyfill, module
ScsmPx
System Center Service Manager PowerShell Extensions
Stars: ✭ 30 (+25%)
Mutual labels:  module
Pagedjs
Display paginated content in the browser and generate print books using web technology
Stars: ✭ 228 (+850%)
Mutual labels:  polyfill
get-css-data
A micro-library for collecting stylesheet data from link and style nodes
Stars: ✭ 29 (+20.83%)
Mutual labels:  module
Eslint Plugin Compat
Lint the browser compatibility of your code
Stars: ✭ 2,743 (+11329.17%)
Mutual labels:  polyfill
create-node-lib
Scaffold a batteries-included Node.js library project with docs, tests, semantic releases and more
Stars: ✭ 31 (+29.17%)
Mutual labels:  module
Details Element Polyfill
<details>
Stars: ✭ 221 (+820.83%)
Mutual labels:  polyfill
nrf24
nrf24l01 linux device driver
Stars: ✭ 20 (-16.67%)
Mutual labels:  module
modjpeg-nginx
NGINX filter module for adding overlays and logos to JPEGs on-the-fly without degrading the quality of the image.
Stars: ✭ 18 (-25%)
Mutual labels:  module
RedisTree
Redis Tree (Ploytree) Structure Module
Stars: ✭ 64 (+166.67%)
Mutual labels:  module
Adapter
Shim to insulate apps from spec changes and prefix differences. Latest adapter.js release:
Stars: ✭ 3,002 (+12408.33%)
Mutual labels:  polyfill
Poly Flif
📷 A poly-fill for the FLIF image format.
Stars: ✭ 243 (+912.5%)
Mutual labels:  polyfill
Instant-Face-Unlock
Xposed Module's InstantFaceUnlock Code
Stars: ✭ 23 (-4.17%)
Mutual labels:  module
React Native Fetch Blob
This project was started in the cause of solving issue facebook/react-native#854, React Native's lacks of Blob implementation which results into problems when transferring binary data.
Stars: ✭ 2,593 (+10704.17%)
Mutual labels:  polyfill
yii2-queue-monitor
Yii2 Queue Analytics Module
Stars: ✭ 99 (+312.5%)
Mutual labels:  module
Core Js
Standard Library
Stars: ✭ 15,854 (+65958.33%)
Mutual labels:  polyfill
Pressure
👇💥 JavaScript library for handling Force Touch, 3D Touch, and Pointer Pressure.
Stars: ✭ 2,785 (+11504.17%)
Mutual labels:  polyfill
ZanAppUpdater
App updater
Stars: ✭ 55 (+129.17%)
Mutual labels:  module
Stripe-Payment-For-Opencart-3.x
Stripe payment module for opencart 3.x
Stars: ✭ 29 (+20.83%)
Mutual labels:  module
OregonCore-Modules
Modules made for Oregoncore
Stars: ✭ 18 (-25%)
Mutual labels:  module

create-require

npm version npm downloads Github Actions Codecov

Polyfill for Node.js module.createRequire (<= v12.2.0)

Install

yarn add create-require

npm install create-require

Usage

function createRequire (filename: string | URL): NodeRequire;
const createRequire = require('create-require')

const myRequire = createRequire('path/to/test.js')
const myModule = myRequire('./test-sibling-module')

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].