@types/require-from-string

  • Version 1.2.0
  • Published
  • No dependencies
  • MIT license

Install

npm i @types/require-from-string
yarn add @types/require-from-string
pnpm add @types/require-from-string

Overview

TypeScript definitions for require-from-string

Index

Functions

function requireFromString

requireFromString: {
(code: string, options?: requireFromString.Options): any;
(code: string, filename?: string, options?: requireFromString.Options): any;
};
  • Load module from string in Node.

Interfaces

interface Options

interface Options {}

    property appendPaths

    appendPaths?: string[];
    • List of paths, that will be appended to module paths. Useful when you want to be able require modules from these paths.

    property prependPaths

    prependPaths?: string[];
    • List of paths, that will be preppended to module paths. Useful when you want to be able require modules from these paths.

    Package Files (1)

    Dependencies (0)

    No dependencies.

    Dev Dependencies (0)

    No dev dependencies.

    Peer Dependencies (0)

    No peer dependencies.

    Badge

    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/require-from-string.

    • Markdown
      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/require-from-string)
    • HTML
      <a href="https://www.jsdocs.io/package/@types/require-from-string"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>