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
// Illustrates "Bug in specialising config for publishing" | |
// https://github.com/isaacs/npm/issues/3121 | |
var npmconf = require('npmconf'); | |
npmconf.load({ abc: 'my_cli_value'}, function (err, conf) { | |
// Print some entries from the initial config | |
console.log("Original config:"); | |
console.log("\tabc: ", conf.get('abc', 'cli')); | |
console.log("\ttag: ", conf.get('tag')); |
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 mockery = require('../mockery'), | |
fake_module; | |
var mock_fake_module = { | |
foo: function () { | |
return 'mocked foo'; | |
} | |
}; | |
fake_module = require('./fixtures/fake_module'); |
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 path = require('path'); | |
var exists = fs.existsSync || path.existsSync; | |
var reified = require('reified'), | |
StructT = reified.StructType, | |
NumT = reified.NumericType, | |
Uint16 = NumT.Uint16, | |
Uint32 = NumT.Uint32; |