shell_js:Node.JS和浏览器的类似于Shell的功能

时间:2024-05-31 13:53:32
【文件属性】:

文件名称:shell_js:Node.JS和浏览器的类似于Shell的功能

文件大小:7KB

文件格式:ZIP

更新时间:2024-05-31 13:53:32

JavaScript

## Shell.js v0.83 ## Shell.js:将Javascript环境视为Unix Shell。 需要Javascript 1.6。 GPL 3.0。 范例:对象的行为就像文件夹。 因此,给定foo = new Shell() , foo.cd(xy)将移动到{current_object}.xy而foo.ls()将给出当前对象的内容。 在适当的地方使用with()关键字可提供Shell脚本功能。 IE foo = new Shell ( ) ; with ( foo ) { with ( foo . _reference ( foo . path ) ) { mkdir ( 'obj' ) ; obj . y = 4 ; obj . z = 6 ;


【文件预览】:
shell_js-master
----shell.js(20KB)
----README.md(1KB)
----local-tests.js(5KB)

网友评论