Skip to content

Instantly share code, notes, and snippets.

@ssddi456
Created August 8, 2013 06:13
Show Gist options
  • Save ssddi456/6181902 to your computer and use it in GitHub Desktop.
Save ssddi456/6181902 to your computer and use it in GitHub Desktop.
check sublime custom install packages
var fs = require('fs');
var _temp = [fs.readdirSync('Packages'),
fs.readdirSync('Pristine Packages')]
_temp[1] = _temp[1].map(function( line ) {
return line.replace(/\.sublime-package$/,'');
});
var _ = require('underscore');
var ret = _.without.apply(null, ( _temp[1].splice(0,0,_temp[0]), _temp[1] ) );
console.log( ret );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment