Files: 67c0e15a98a66eb99db2251478505d6f3d37535c / 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