Skip to content
项目

sdras/js-explorer has 343 GitHub stars and 31 forks. GitHot measured 0 stars in 24 hours and -1 in 7 days. Last checked 2026-11-23 00:18 UTC. Last push 2026-05-25.

这些数字如何统计

实测星标增长

24小时
0
7天
-1
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

关于

Find the method you need without digging through the docs, directly on the command line!

学习资源

README.md

原文

JavaScript Explorer

Find the method you need without digging through the docs! ✨

When I was first learning array and object methods, I spent a lot of time digging through the docs to find the appropriate one, and I had to search one by one. I made this resource to help people find the correct object method a bit more naturally. You can narrow down what you want to do and explore until you find what's most useful to you.

js-explorer-demo

It's been 4 years since I released the Array and Object Explorers as tools for the community. I realized it interrupts flow state to have to go to a web app to use them, so I thought a command line tool might be a better developer experience.

Usage

I recommend installing the tool globally, so that you can make use of it no matter what project you're working on, but you can take out -g flag if you want to use it in particular projects instead:

npm i -g js-explorer

Note: You may need to run sudo before this command- sudo npm i -g js-explorer

Then, to kick off the explorer, type:

jsexplorer

You will be guided through prompts to find your method!

It will also allow you to save the entry at the end (optional.)

Other commands

jsexplorer plain

Runs the tool without asking to save at the end.

jsexplorer -p

Same as above, aliased p for plain.

lookup [string to look up]

If you save an entry, you can run lookup and the string to find that entry and print it.

For example, let's say you ran the explorer and at the end when it prompts you to save, you saved Array.slice() as "That one I always mix up with the other one!" You would type lookup That one I always mix up with the other one!

A more simple example might be homeslice, in which case you would run lookup homeslice.

clearlookup

Clears all saved jsexplorer entries.

More information on the project

I realize that there are about a million ways that this resource can be set up, and some of the taxonomy is necessarily opinionated. I tried to focus on what I thought would have helped me learn the best, rather than industry standard delineations. If that style of learning suits you better, that's great! This resource is not set up that way. Please keep in mind that this is not meant to be as comprehensive or a replacement for full documentation, which is why the MDN docs are linked to in each method.

I based most of the longer descriptions off of the MDN documentation, altering it slightly where I felt the description was not as beginner-friendly as it could be. The examples were kept as simple as humanly possible for the purpose of scanning with the least cognitive load, you may need extra details provided in the MDN documentation for every possible usage.

Enjoy! 🌮

探索相关项目

加载中…