# @types/require-from-string

> TypeScript definitions for require-from-string

Latest version **1.2.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/require-from-string
pnpm add @types/require-from-string
yarn add @types/require-from-string
bun add @types/require-from-string
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2023-11-07 |
| First published | 2017-08-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/require-from-string
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/require-from-string
- npm.io page: https://npm.io/package/@types/require-from-string

## Recent versions

- 1.2.3 (latest) — 2023-11-07
- 1.2.1 (ts3.6) — 2021-07-07
- 1.2.0 (ts2.0) — 2017-08-23
- 1.2.2 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/require-from-string/index.d.ts)
````ts
/**
 * 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: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Ika](https://github.com/ikatyang).

---
_Source: https://npm.io/package/@types/require-from-string · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
