@types/require-from-string
TypeScript definitions for require-from-string
Last updated 5 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/require-from-string 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/require-from-string

Summary

This package contains type definitions for require-from-string (https://github.com/floatdrop/require-from-string).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/require-from-string.

index.d.ts

// Type definitions for require-from-string 1.2
// Project: https://github.com/floatdrop/require-from-string
// Definitions by: Ika <https://github.com/ikatyang>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/**
 * Load module from string in Node.
 */
declare function requireFromString(code: string, options?: requireFromString.Options): any;
declare function requireFromString(code: string, filename?: string, options?: requireFromString.Options): any;

declare namespace requireFromString {
    interface Options {
        /**
         * List of `paths`, that will be appended to module `paths`.
         * Useful when you want to be able require modules from these paths.
         */
        appendPaths?: string[] | undefined;
        /**
         * List of `paths`, that will be preppended to module `paths`.
         * Useful when you want to be able require modules from these paths.
         */
        prependPaths?: string[] | undefined;
    }
}

export = requireFromString;

Additional Details

  • Last updated: Wed, 07 Jul 2021 18:02:24 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Ika.

Current Tags

  • 1.2.1                                ...           latest (5 years ago)
  • 1.2.0                                ...           ts2.0 (9 years ago)
  • 1.2.0                                ...           ts2.1 (9 years ago)
  • 1.2.0                                ...           ts2.2 (9 years ago)
  • 1.2.0                                ...           ts2.3 (9 years ago)
  • 1.2.0                                ...           ts2.4 (9 years ago)
  • 1.2.0                                ...           ts2.5 (9 years ago)
  • 1.2.0                                ...           ts2.6 (9 years ago)
  • 1.2.0                                ...           ts2.7 (9 years ago)
  • 1.2.0                                ...           ts2.8 (9 years ago)
  • 1.2.0                                ...           ts2.9 (9 years ago)
  • 1.2.0                                ...           ts3.0 (9 years ago)
  • 1.2.0                                ...           ts3.1 (9 years ago)
  • 1.2.0                                ...           ts3.2 (9 years ago)
  • 1.2.0                                ...           ts3.3 (9 years ago)
  • 1.2.0                                ...           ts3.4 (9 years ago)
  • 1.2.0                                ...           ts3.5 (9 years ago)
  • 1.2.1                                ...           ts3.6 (5 years ago)
  • 1.2.1                                ...           ts3.7 (5 years ago)
  • 1.2.1                                ...           ts3.8 (5 years ago)
  • 1.2.1                                ...           ts3.9 (5 years ago)
  • 1.2.1                                ...           ts4.0 (5 years ago)
  • 1.2.1                                ...           ts4.1 (5 years ago)
  • 1.2.1                                ...           ts4.2 (5 years ago)
  • 1.2.1                                ...           ts4.3 (5 years ago)
  • 1.2.1                                ...           ts4.4 (5 years ago)
  • 1.2.1                                ...           ts4.5 (5 years ago)
  • 1.2.1                                ...           ts4.6 (5 years ago)
  • 1.2.1                                ...           ts4.7 (5 years ago)
  • 1.2.1                                ...           ts4.8 (5 years ago)
  • 1.2.1                                ...           ts4.9 (5 years ago)
  • 1.2.1                                ...           ts5.0 (5 years ago)
  • 1.2.1                                ...           ts5.1 (5 years ago)

2 Versions

  • 1.2.1                                ...           5 years ago
  • 1.2.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |