Skip to content

Ability to run scripts using baapan command #12

@deepal

Description

@deepal

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
>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions