Skip to content

Instantly share code, notes, and snippets.

View etiktin's full-sized avatar

Eran Tiktin etiktin

  • Beamr Imaging Ltd.
View GitHub Profile
@etiktin
etiktin / prune_example.js
Created November 8, 2015 15:38
Using npm API to remove dev dependencies from your node_modules folder (equivalent of `npm prune --production`)
var npm = require('npm');
var cb = funtion (error) {
if (error) {
console.log('Failed to remove devDependencies');
} else {
console.log('devDependencies removed from node_modules');
}
};
@etiktin
etiktin / runas-build.log
Created August 22, 2015 18:52
Build log for the runas module initiated by Electron's bootstrap.py
> runas@3.1.0 install C:\electron\spec\node_modules\runas
> node-gyp rebuild
eran.t@MCEHQ180 C:\electron\spec\node_modules\runas
> if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
gyp info it worked if it ends with ok
gyp verb cli [ 'node',
gyp verb cli 'C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild' ]
@etiktin
etiktin / glob@4.5.3-common.js
Created July 9, 2015 14:51
Merging the changes made to glob/common.js by @staticshock to glob@4.5.3 (this is the glob version that is used by gulp@3.9.0). The changes fix the support for "nocase" on Windows and add basic support for UNC
exports.alphasort = alphasort
exports.alphasorti = alphasorti
exports.isAbsolute = process.platform === "win32" ? absWin : absUnix
exports.setopts = setopts
exports.ownProp = ownProp
exports.makeAbs = makeAbs
exports.finish = finish
exports.mark = mark
exports.isIgnored = isIgnored
exports.childrenIgnored = childrenIgnored