All Projects → sdras → js-explorer

sdras / js-explorer

Licence: MIT license
Find the method you need without digging through the docs, directly on the command line!

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to js-explorer

rxjs-ninja
RxJS Operators for handling Observable strings, numbers, booleans and more
Stars: ✭ 68 (-76.31%)
Mutual labels:  array, array-methods
ss-search
The most basic, yet powerful text search.
Stars: ✭ 41 (-85.71%)
Mutual labels:  object, array
php-helpers
An extensive set of PHP helper functions and classes.
Stars: ✭ 27 (-90.59%)
Mutual labels:  object, array
prototyped.js
Some common Typescript prototypes
Stars: ✭ 22 (-92.33%)
Mutual labels:  object, array
Moses
Utility library for functional programming in Lua
Stars: ✭ 541 (+88.5%)
Mutual labels:  object, array
js-deep-sort-object
Simple module to sort objects recursively by its keys
Stars: ✭ 19 (-93.38%)
Mutual labels:  object, array
utils.js
👷 🔧 zero dependencies vanilla JavaScript utils.
Stars: ✭ 14 (-95.12%)
Mutual labels:  object, array
array
Pack of advanced PHP array functions
Stars: ✭ 45 (-84.32%)
Mutual labels:  array, array-methods
Deep Object Diff
Deep diffs two objects, including nested structures of arrays and objects, and returns the difference. ❄️
Stars: ✭ 515 (+79.44%)
Mutual labels:  object, array
Morphism
⚡ Type-safe data transformer for JavaScript, TypeScript & Node.js.
Stars: ✭ 336 (+17.07%)
Mutual labels:  object, array
Kind Of
Get the native JavaScript type of a value, fast. Used by superstruct, micromatch and many others!
Stars: ✭ 268 (-6.62%)
Mutual labels:  object, array
Kibana Object Format
A Kibana plugin for displaying objects and arrays of objects.
Stars: ✭ 100 (-65.16%)
Mutual labels:  object, array
Shallow Clone
Make a shallow clone of an object, array or primitive.
Stars: ✭ 23 (-91.99%)
Mutual labels:  object, array
What The Filter
A visual playground to JavaScript array & object transformations.
Stars: ✭ 128 (-55.4%)
Mutual labels:  object, array
slimarray
SlimArray compresses uint32 into several bits, by using a polynomial to describe overall trend of an array.
Stars: ✭ 39 (-86.41%)
Mutual labels:  array
DTE
Generate C# class from database table
Stars: ✭ 26 (-90.94%)
Mutual labels:  object
object-visit
Call the given method on each value in the given object.
Stars: ✭ 19 (-93.38%)
Mutual labels:  object
arrays
Yii Array Helper
Stars: ✭ 41 (-85.71%)
Mutual labels:  array
xml-to-array
A simple class to convert an xml to array
Stars: ✭ 30 (-89.55%)
Mutual labels:  array
has-value
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
Stars: ✭ 27 (-90.59%)
Mutual labels:  object

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! 🌮

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].