sublime
v1.2.1
Published
an npm module for interfacing with Sublime Text
Downloads
55
Maintainers
Readme
sublime
npm module for interfacing with Sublime Text plugins and settings
Installation:
npm install --save sublime
Methods:
- Fetch Installed Plugins Folders
Returns an object containing arrays of absolute paths for each plugin installed for each detected Sublime App
var Sublime = require('sublime');
var plugins = Sublime.plugins();
console.log(plugins);
Output
{
"Sublime Text 2": [ ... ],
"Sublime Text 3": [ ... ]
}
- Fetch Custom User Settings for Plugins/etc
Returns an object containing arrays of absolute paths for each settings file found in the User folder
var Sublime = require('sublime');
var settings_files = Sublime.getUserSettingsFiles();
console.log(settings_files);
Output
{
"Sublime Text 2": [ ... ],
"Sublime Text 3": [ ... ]
}