Files: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44 / 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