# imprt

> Executes ES2015 / ES6 module statements

Latest version **0.0.0** (published 2016-07-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install imprt
pnpm add imprt
yarn add imprt
bun add imprt
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2016-07-28 |
| First published | 2016-07-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matthias Thoemmes |
| Maintainers | cmtt |
| Keywords | es2015, es6, modules, import, export, parser, tokenizer, expression, eval |

## Links

- npm: https://www.npmjs.com/package/imprt
- npm.io page: https://npm.io/package/imprt

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.0.0 (latest) — 2016-07-28

## README

# imprt

Evaluate ES2015 module statements in Node.js and [webpack](https://github.com/webpack/webpack)-based applications.

## Intention

Node.js 6.x does not yet support the ES2015 module syntax.
This module intends to make the transition easier as soon Node.js might implement
the proposal "[ES6 Module Interoperability](https://github.com/nodejs/node-eps/blob/master/002-es6-modules.md)" in its core.

Currently, solely the import statement is supported.

## Solution

imprt tokenizes, parses the given string and returns the result according to the
specified ES2015 expression by calling Node.js require().

## Usage

const imprt = require('imprt');
const buf = imprt('import buffer');
console.log(new buf.Buffer([0x47, 0x49, 0x46, 0x38, 0x39, 61]).toString('utf8'));

# License

MIT (see LICENSE)

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