# noimport

> Resolves ES2015 imports and patch everything into a flat file.

Latest version **1.0.1** (published 2019-10-24) · LGPL-3.0-or-later license · 0 weekly downloads

## Install

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

Provides the command `noimport`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-10-24 |
| First published | 2019-10-24 |
| Weekly downloads | 0 |
| License | LGPL-3.0-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Raphaël Calabro |
| Maintainers | lunelight |
| Keywords | import, es2015 |

## Links

- npm: https://www.npmjs.com/package/noimport
- Repository: https://github.com/Raphcal/noimport
- Homepage: https://github.com/Raphcal/noimport#readme
- Issues: https://github.com/Raphcal/noimport/issues
- npm.io page: https://npm.io/package/noimport

## Recent versions

- 1.0.1 (latest) — 2019-10-24
- 1.0.0 — 2019-10-24

## README

# noimport

Utility to resolve ES2015 imports and to remove export statements from a given file.
Everything will be mashed up into a flat file.

Works with Javascript and Typescript files.

The current version does no tree shaking and simply patch files together.

## Installation
~~~
npm install -g noimport
~~~

## Usage
You can give `noimport` only the source file as argument to print the result to the console:
~~~
noimport source.ts
~~~

Or you can specify a target file where to write the result:
~~~
noimport source.ts target.ts
~~~

## Example
Using `noimport source.ts` on the given files:

`source.ts`
~~~ typescript
import { SomeClass } from './other';

export const instance = new SomeClass();
~~~

`other.ts`
~~~ typescript
export class SomeClass {
    property: string;
}
export class UnusedClass {
    property: string;
}
~~~

Will give the following output:
~~~ typescript
class SomeClass {
    property: string;
}
class UnusedClass {
    property: string;
}

const instance = new SomeClass();
~~~

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