# alanode

> The Binary To Run Node.JS Files With Import And Export Statements.

Latest version **1.1.0** (published 2020-04-15) · MIT license · 0 weekly downloads

## Install

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

Provides the command `alanode`.

## 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.1.0 |
| Published | 2020-04-15 |
| First published | 2019-03-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Anton |
| Maintainers | zvr |
| Keywords | alamode, alanode, import, export, require, ecma, ecma6, es6, modules, module |

## Links

- npm: https://www.npmjs.com/package/alanode
- Repository: https://gitlab.com/a-la/alanode
- Homepage: https://www.artd.eco/
- Issues: https://gitlab.com/a-la/alanode/-/issues
- npm.io page: https://npm.io/package/alanode

## Dependencies (1)

- [alamode](https://npm.io/package/alamode.md) 3.7.1

## Recent versions

- 1.1.0 (latest) — 2020-04-15
- 1.0.2 — 2019-03-30
- 1.0.1 — 2019-03-30
- 1.0.0 — 2019-03-30

## README

# alanode

[![npm version](https://badge.fury.io/js/alanode.svg)](https://www.npmjs.com/package/alanode)

`alanode` is The Binary To Run Node.JS Files With Import And Export Statements.

```sh
yarn add -DE alanode # project-based
yarn global add alanode # user-based
```

## Table Of Contents

- [Table Of Contents](#table-of-contents)
- [CLI](#cli)
- [Copyright](#copyright)

<div align="center"><a href="#table-of-contents">
  <img src="/.documentary/section-breaks/0.svg?sanitize=true">
</a></div>

## CLI

The package can be run from the CLI:

```sh
$ alanode source
```

It uses [ÀLaMode](https://github.com/a-la/alamode) regex-based transpiler to change `import` and `export` statements into `require` calls and `module.export` expressions (no _Babel_). It also normalises `process.argv` to hide its presence, so that programs can safely keep using the _argv_ array without unexpected results.

_With the following file that uses an import_:

```js
import { constants } from 'os'
console.log(process.argv)
console.log(constants.signals.SIGINT)
```

_`$ alanode t` will generate the result successfully:_

```
[
  '/Users/anton/.nvm/versions/node/v12.14.1/bin/node',
  '/Users/anton/a-la/alanode/test/fixture/t'
]
2
```

<div align="center"><a href="#table-of-contents">
  <img src="/.documentary/section-breaks/1.svg?sanitize=true">
</a></div>

## Copyright

(c) [À La Mode][1] 2019

[1]: https://alamode.cc

<div align="center"><a href="#table-of-contents">
  <img src="/.documentary/section-breaks/-1.svg?sanitize=true">
</a></div>

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