Files: ca90b5ca0579ebdcc0635288bce4978e3fb200f5 / test / test-50-native-addon / test-x-index.js
307 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, 'lib/time.node'))); |
10 | console.log(require('./lib/time.node')); |
11 |
Built with git-ssb-web