# @nrser/jash

> do javascript from bash.

Latest version **0.1.6** (published 2016-11-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install @nrser/jash
pnpm add @nrser/jash
yarn add @nrser/jash
bun add @nrser/jash
```

Provides the command `jash`.

## 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.1.6 |
| Published | 2016-11-29 |
| First published | 2016-10-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 19 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | nrser |
| Maintainers | nrser |

## Links

- npm: https://www.npmjs.com/package/@nrser/jash
- Repository: https://github.com/nrser/jash
- Homepage: https://github.com/nrser/jash#readme
- Issues: https://github.com/nrser/jash/issues
- npm.io page: https://npm.io/package/@nrser/jash

## Dependencies (19)

- [kexec](https://npm.io/package/kexec.md) ^3.0.0
- [nrser](https://npm.io/package/nrser.md) ^0.5.1
- [slash](https://npm.io/package/slash.md) ^1.0.0
- [tcomb](https://npm.io/package/tcomb.md) ^3.2.15
- [lodash](https://npm.io/package/lodash.md) ^4.14.0
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [babylon](https://npm.io/package/babylon.md) ^6.8.4
- [bluebird](https://npm.io/package/bluebird.md) >= 2.3.2 < 3
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [minimatch](https://npm.io/package/minimatch.md) ^3.0.2
- [babel-core](https://npm.io/package/babel-core.md) ^6.17.0
- [home-or-tmp](https://npm.io/package/home-or-tmp.md) ^1.0.0
- [path-exists](https://npm.io/package/path-exists.md) ^1.0.0
- [shell-escape](https://npm.io/package/shell-escape.md) ^0.2.0
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.9.0
- [babel-preset-react](https://npm.io/package/babel-preset-react.md) ^6.16.0
- [source-map-support](https://npm.io/package/source-map-support.md) ^0.2.10
- [babel-preset-es2015](https://npm.io/package/babel-preset-es2015.md) ^6.14.0
- [babel-preset-stage-2](https://npm.io/package/babel-preset-stage-2.md) ^6.17.0

## Recent versions

- 0.1.6 (latest) — 2016-11-29
- 0.1.5 — 2016-11-29
- 0.1.4 — 2016-11-29
- 0.1.3 — 2016-11-29
- 0.1.2 — 2016-11-29
- 0.1.1 — 2016-10-21
- 0.1.0 — 2016-10-20

## README

jash
====

`jash` just lets you call javascipt functions from the bash prompt.

thoughts on how it should work... i left it half-way through whatever and it's kinda a mess and 'cause of that but i wanted to record the general idea.

1.  
    have a `path` that can be set via a `JASH_PATH` env var that is searched.
    
2.  
    `jash` takes an arg like `d/m.f` which would mean the function `f` in the first `d/m.js` file found going through the path (unless there's a `d/m.es6.js` found, see below).
 
3.  
    since we want to use es6, `jash` is going be kind enough to transpile it for us. in fact, it will compile everything in the directory so that we can include other files (i'm not going to deal with trying to chase the includes now but it should be possible since we parse the file).

    to make it easy, we're going to name these files `*.es6.js` so that `jash` knows to transpile them into their `*.js` counterparts.
    
    however, since it seems to take a bit for babel to boot up and do it's thing (which isn't surprising) we're going to leave a hash of the source file `m.es6.js` as a comment at the top of `m.js` and check against that first to see if we need to re-transpile.

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