https://github.com/keyz/bn0
`bn0`: babel-node with pre-loaded nightly (stage-0) presets
https://github.com/keyz/bn0
Last synced: over 1 year ago
JSON representation
`bn0`: babel-node with pre-loaded nightly (stage-0) presets
- Host: GitHub
- URL: https://github.com/keyz/bn0
- Owner: keyz
- License: mit
- Created: 2016-12-01T06:52:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T17:27:57.000Z (over 3 years ago)
- Last Synced: 2025-03-13T17:53:51.958Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 305 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bn0 [](https://www.npmjs.com/package/bn0)
`bn0`: `bn0`: babel-node with pre-loaded presets
```
$ npm install -g bn0
$ bn0 myFile.js
```
This is a wrapper of [`@babel/node`](https://www.npmjs.com/package/@babel/node) that provides a `bn0` binary. `bn0` is a `babel-node` alternative with some commonly used presets pre-loaded. It comes with:
- [`@babel/plugin-proposal-class-properties`](https://www.npmjs.com/package/@babel/plugin-proposal-class-properties)
- [`@babel/preset-env`](https://www.npmjs.com/package/@babel/preset-env)
- [`@babel/preset-flow`](https://www.npmjs.com/package/@babel/preset-flow)
- [`@babel/preset-react`](https://www.npmjs.com/package/@babel/preset-react)
## Why?
First of all, it's no different than `babel-node` so don't use it in production.
Say you wanna quickly _prototype_ some stuff using the latest JavaScript features, but:
1. Installing `@babel/cli` and presets globally is [a bad idea](https://babeljs.io/docs/usage/cli/)
2. Setting up a new project and adding `@babel/core`, `@babel/cli`, `@babel/preset-...` dependencies takes too much time
Got it? `bn0` requires no configuration and doesn't pollute your local `require/import` calls. Just run your file with `bn0 myFile.js`, or use `bn0` itself for a REPL.