Coder Social home page Coder Social logo

essh's Introduction

ESSH (Temporary Name)

An attempt on writting a shell based on Node.js REPL.

This is just a prototype, but you may try out.

Usage

Everything inside this shell is written in JavaScript. You may extend/use it just like you are using javascript. But there has some extensions built-in this shell:

Navigating through files and getting its contents:

// Print out the contents Something.txt at the parent directory.
console.log(_['..']['Something.txt'][$data].toString('utf8'))

Writing contents into file:

_.newfile[$data] = 'The text that overrites this file.'

Executing an executable:

// Launch cmd on Windows. (Does not work on *nix)
_C.Windows.System32['cmd.exe']('/c', 'help') // This will return everything output (as buffers), you may use a variable to store it.

Moving a file:

// Move a file inside Subdir to user's home driectory.
_home.NewFile = _.SubDir.OldFile

Delete a file:

// Delete Rubbish.tmp at *nix root directory. (_root does not work on windows)
delete _root['Rubbish.tmp']

Change current working directory:

// Change current working directory to root.
_ = _root;

WIP

License

MIT

essh's People

Contributors

jlchntoz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.