Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / test / test-50-native-addon-2 / test-x-index.js
332 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.node'))); |
10 | console.log(require('dependency/time.node')); |
11 |
Built with git-ssb-web