Files: 65191f9a9664f013ebe726bb95a1a54b086e1bd5 / test / test-50-native-addon-3 / lib / test-x-index.js
705 bytesRaw
1 | /* eslint-disable no-underscore-dangle */ |
2 | |
3 | 'use strict'; |
4 | |
5 | var fs = require('fs'); |
6 | var path = require('path'); |
7 | var Module = require('module'); |
8 | Module._extensions['.node'] = Module._extensions['.js']; |
9 | console.log(fs.existsSync(path.join(__dirname, '../node_modules/dependency/time-d.node'))); |
10 | console.log(require('dependency/time-d.node')); |
11 | console.log(fs.existsSync(path.join(__dirname, 'time-x.node'))); |
12 | console.log(require('./time-x.node')); |
13 | console.log(fs.existsSync(path.join(__dirname, 'community/time-y.node'))); |
14 | console.log(require('./community/time-y.node')); |
15 | console.log(fs.existsSync(path.join(__dirname, '../lib/enterprise/time-z.node'))); |
16 | console.log(require('../lib/enterprise/time-z.node')); |
17 |
Built with git-ssb-web