lambda-view provides you a better way to READ JavaScript source code.
lambda-view is not something like sublime text/atom or what else editor that you have ever seen before:
- It is not a text editor, but a reader (for JavaScript)
- It understands the grammar of JavaScript, operating on the AST level, not just a simple token level highlighter
- It transforms and reproduces the source code as needed
- It is highly optimized for reading, which brings some special layouts and design
- You can read on ipad (a comfortable way), not only computer
You can try read express.js framework source code here: http://demo.lambda-view.com/lv.html?package=express
Or some Node.js modules source code here:
(public modules)
- assert
- domain
- path
- timers
- buffer
- events
- process
- tls
- child_process
- fs
- punycode
- tty
- cluster
- http
- querystring
- url
- console
- https
- readline
- util
- constants
- repl
- v8
- crypto
- module
- stream
- vm
- dgram
- net
- string_decoder
- zlib
- dns
- os
- sys
(internal modules)
- _debug_agent
- _stream_duplex
- _debugger
- _stream_passthrough
- _http_agent
- _stream_readable
- _http_client
- _stream_transform
- _http_common
- _stream_wrap
- _http_incoming
- _stream_writable
- _http_outgoing
- _tls_common
- _http_server
- _tls_legacy
- _linklist
- _tls_wrap
- internal/freelist
- internal/net
- internal/readline
- internal/socket_list
- internal/v8_prof_polyfill
- internal/child_process
- internal/linkedlist
- internal/v8_prof_processor
- internal/cluster
- internal/module
- internal/process
- internal/repl
- internal/util
- internal/process/next_tick
- internal/process/promises
- internal/process/stdio
- internal/process/warning
- internal/streams/BufferList
- internal/streams/lazy_transform
You are not limited to the demos! Just install lambda-view then read any JavaScript file you'd like to!
STEP-1 install it via npm (sudo required maybe):
npm install -g lambda-view
STEP-2 use lv command to open any JavaScript file:
lv target.js
Then (if everything is ok), your web browser will be opened automatically and shows you the result. Pretty easy, right?
I created a gitter chat room here:
Yes, lv command accepts URL:
lv https://code.jquery.com/jquery-3.1.1.js
Yes, you can provide multiple filenames to lv command:
lv file1.js file2.js file3.js
Further more, you can use the wildcard (For Linux/Mac only, Not Windows):
lv *.js
Yes.
This is an experimental feature.
lambda-view embeded a small web server which accepts local access only by default. However you can reconfigure it to accept public access. This makes your computer become a web server that can be accessed by your iphone/ipad.
You can achieve it in 3 steps.
STEP-1 stop current lambda-view web server:
lv-svr stop
STEP-2 start lambda-view web server with public mode:
lv-svr start --public --background
STEP-3 open any JavaScript file you want to read on your iphone/ipad:
lv some-file.js
Now, the web browser will be opened, and you can copy it's URL to your iphone/ipad's safari. Then you can read it. (Your iphone/ipad )
Please make sure:
- Your computer and your iphone/ipad must connected to the same LAN
- If there is any firewall enabled on your computer, please configure it to allow public access on TCP port 23400
This is just a begining. I'll add more features soon.