Registry / http-networking / transquire

transquire

JSON →
library0.0.1jsnpmunverified

A require replacement and hook to automatically transpiler module source at runtime. Current stable version 0.0.1. This package provides a mechanism to automatically transpile ES6 or other source code during require() calls by replacing or hooking Node.js's module loading. It is designed for development or sandboxed environments where pre-compilation is not desired. Differentiates from Babel/register by being a more generic hook for transpilers. No active development since 2015.

npm install transquire
INSTALL
IMPORT
SIG · TRANSQUIRE
T
transquire
http-networkingjavascriptv0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

transquire
import transquire from 'transquire'
const transquire = require('transquire')
Default export, works with both ESM and CJS, but package is outdated and not recommended for new projects.

Shows how to replace require with a transpiling version using transquire.

// Install: npm install transquire // Then in your code (ESM or CJS): import transquire from 'transquire'; // Replace require with transpiling version const originalRequire = require; require = transquire(require, { // transpiler options // e.g., for ES6 extensions: ['.es6', '.js'], transform: (code, filename) => { // use babel or other transpiler return code; } }); // Now require will handle transpilation const module = require('./some.es6');
Debug
Known issues
gotchaPackage is abandoned (last publish 9+ years ago). Not recommended for use in new projects.
fix
Use modern alternatives like @babel/register or ts-node for TypeScript.
affects: >=0.0.1
gotchaNo TypeScript definitions available; usage in TypeScript projects is unsupported.
fix
Write custom type declarations if needed, but consider alternative packages.
affects: >=0.0.1
Errors
Common errors & fixes
Cannot find module 'transquire'
Package not installed or missing from node_modules.
fix
Run 'npm install transquire' with the correct registry.
transquire is not a function
Import style mismatch; using default import when not configured.
fix
Ensure you imported with 'import transquire from 'transquire'' or use 'const transquire = require('transquire').default'.
Upgrade
Version history
0.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
transquire — npm install transquire · libregistry