Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to run scripts using baapan command #12

Open
deepal opened this issue Dec 14, 2019 · 0 comments
Open

Ability to run scripts using baapan command #12

deepal opened this issue Dec 14, 2019 · 0 comments

Comments

@deepal
Copy link
Owner

deepal commented Dec 14, 2019

Proposed Feature

e.g. mytest.js

const lodash = require('lodash')
lodash.get({a: {b: 10}}, 'a.b')

Introduce the ability to run baapan command similar to node command in order to run JavaScript.

e.g,

baapan mytest.js

baapan should automatically download any required dependencies and run the script.

Alternative suggestion

This is currently possible by .load repl command as follows:

$ baapan
Creating workspace...
Initializing workspace...
Workspace loaded!
> .load mytest.js
const lodash = require('lodash')
lodash.get({a: {b: 10}}, 'a.b')

Fetching and installing module 'lodash' from npm...
Done!
10
>
@deepal deepal added this to Todo in Baapan REPL Feb 3, 2020
@deepal deepal added this to To do in Baapan REPL Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Baapan REPL
  
To do
Baapan REPL
  
Todo
Development

No branches or pull requests

1 participant