Created
August 8, 2013 06:13
-
-
Save ssddi456/6181902 to your computer and use it in GitHub Desktop.
check sublime custom install packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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