Skip to content

Sublime Text plugin for displaying NPM information such as version, description, properties and methods, as well as a quick link to the repo and a link to open the package.json file.

License

Notifications You must be signed in to change notification settings

dsteinbach/npm-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM Info

Sublime Text plugin for displaying information about modules included through require() in node.js files. Placing your cursor between the quotes of a require function will display a panel with a link to the package.json file, link to the module's repo in a browser, and a list properties and methods. It also displays version and module description in the status bar.

How to use

Place your cursor between the quotes of a require method and wait for 1.5 seconds (configurable):

var thingy = require("thingy");

For example:

Also, version and description appears in status bar:

lodash@2.4.1 - A utility library delivering consistency, customization, performance, & extras.

Note: Information for native Node NPMs require('fs') and non-NPMs require("../script.js") won't display as they have no associated package.json file.

Installation

Via Package Control

First make sure you have Package Control installed (https://sublime.wbond.net/installation) and then:

  • Open Package Control: ctrl+shift+p (Win, Linux) or cmd+shift+p (OS X)
  • Find and select: Package Control: Install Package
  • Search for NPMInfo and hit return

Manual Install

Unzip the contents of this repo to a folder called NPMInfo at this location:

OSX:
~/Library/Application Support/Sublime Text 2/Packages/NPMInfo
Windows:
%APPDATA%\Sublime Text 2\Packages\NPMInfo

About

Sublime Text plugin for displaying NPM information such as version, description, properties and methods, as well as a quick link to the repo and a link to open the package.json file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages