Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Mar 20, 2024 via pnpm
Package summary
Share
0
issues
1
license
7
MIT
Package created
20 Mar 2014
Version published
22 Jul 2015
Maintainers
2
Total deps
7
Direct deps
1
License
UNKNOWN

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
function-bind@1.1.2
hasown@2.0.2
is-core-module@2.13.1
path-parse@1.0.7
rechoir@0.6.2
resolve@1.22.8
supports-preserve-symlinks-flag@1.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of rechoir 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
resolve1.22.826.69 kBMIT
prod

Visualizations

Frequently Asked Questions

What does rechoir do?

Rechoir is a versatile npm package that allows you to prepare a Node.js environment for requiring files of various extensions. The package can register any file type that has a module loader within the npm ecosystem, in conjunction with interpret-like objects. Being a dependency of Liftoff, it can automatically load and register transpilers such as Coffee-Script but requires a local installation as these are not bundled with the module.

How do you use rechoir?

Using Rechoir can be quite straightforward. First, you install the package using npm. Then to employ it, you need to require both the 'interpret' and 'rechoir' modules in your JavaScript file. The 'interpret' module holds the configurations for the file extensions, and rechoir will prepare those files for usage. Below is a code example for clarity:

const config = require('interpret').extensions;
const rechoir = require('rechoir');

rechoir.prepare(config, './test/fixtures/test.coffee');
rechoir.prepare(config, './test/fixtures/test.csv');
rechoir.prepare(config, './test/fixtures/test.toml');

console.log(require('./test/fixtures/test.coffee'));
console.log(require('./test/fixtures/test.csv'));
console.log(require('./test/fixtures/test.toml'));

In the above snippet, the rechoir.prepare command is registering loaders for .coffee, .csv, and .toml files in a mocked testing environment. The subsequent console.log commands will then output the required files.

Where are the rechoir docs?

Documentation for Rechoir can be found within the package's GitHub Readme file, which provides a comprehensive understanding of what the module is and how you can use it in your project. You can access the readme by visiting the GitHub page for the Rechoir npm package. For more detail on how to configure different file types for loading, you can also refer to the documentation for the npm interpret module, which Rechoir works in conjunction with.