https://github.com/ipshot/easyscript
Create and run js scripts without preparations
https://github.com/ipshot/easyscript
babel create easy es6 fast javascript js node nodejs quick quickstart run script simple
Last synced: 4 months ago
JSON representation
Create and run js scripts without preparations
- Host: GitHub
- URL: https://github.com/ipshot/easyscript
- Owner: IpShot
- Created: 2019-02-19T14:28:26.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T16:42:08.000Z (about 3 years ago)
- Last Synced: 2023-08-25T02:44:15.713Z (over 2 years ago)
- Topics: babel, create, easy, es6, fast, javascript, js, node, nodejs, quick, quickstart, run, script, simple
- Language: JavaScript
- Homepage:
- Size: 163 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EasyScript
Quick, simple way to create and run your ES6 scripts in NodeJS.
### Problem
Sometimes you need to create a script for a one-time task. For example you have to fetch all emails from database, filter and structure them in a required way, then write them to a txt file. If you don't want to spend time for configuring npm project from scratch this tool for you.
### Benefits
* No any configurations.
* No need to install used packages, they will be installed automatically.
* ES6 is set up.
* Everything ready. Just write your script and run.
## How to use
```
git clone https://github.com/IpShot/EasyScript.git
cd ./EasyScript
npm install
```
Add your script file to `scripts` folder.\
After a new script file added you have to run:
```
npm run build
```
You don't need to call the build command after a script change. You have to do that only if a new file added to `scripts` folder.
After build you can run your scripts as:
```
npm run your_script_file_name (without extension)
```
You don't need to install any packages you used in the script. It will be installed automatically.
Example:
```
npm run helloworld
```