work.suroh.tk/node_modules/module-definition/bin/module-definition.js

9 lines
148 B
JavaScript
Executable File

#!/usr/bin/env node
'use strict';
var getModuleType = require('../');
var filename = process.argv[2];
console.log(getModuleType.sync(filename));