npm / www

community space for the npm website
https://npm.community
69 stars 48 forks source link

Add bin info in the sidebar #423

Open Delapouite opened 6 years ago

Delapouite commented 6 years ago

Hello npm team

Many packages offers a shell command when installed.

For example npm installing eslint will provide the eslint command. (either globally or in ./node_modules/bin)

This info is available in the bin property of package.json. What about mentioning it in the package page sidebar in one form or another?

Here's a rough idea :

image

This can be particularly useful in the case where the bin name differs from the package name and/or the package have multiple bin entries.