npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

lambda-view

v5.10.0

Published

A New Tool for Reading JavaScript Code in 2017

Downloads

33

Readme

lambda-view: A New Tool for Reading JavaScript Code in 2017

lambda-view provides you a better way to READ JavaScript source code.

What's the difference?

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

Read any JavaScript file you'd like to!

You are not limited to the demos! Just install lambda-view then read any JavaScript file you'd like to!

Get started in 2 steps

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?

Talk to me

I created a gitter chat room here:

Gitter

Helpful tips

Can I open remote file by URL?

Yes, lv command accepts URL:

lv https://code.jquery.com/jquery-3.1.1.js

Can I open multiple files in one command?

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

Can I use lambda-view on my iphone/ipad?

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

Future plans

This is just a begining. I'll add more features soon.