mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-04 12:49:32 +08:00
13 lines
No EOL
368 B
Text
13 lines
No EOL
368 B
Text
var fs = require( 'fs' ),
|
|
path = require( 'path' );
|
|
|
|
module.exports = function ( stream ) {
|
|
fs.readFile( path.join( __dirname, 'help.md' ), function ( err, result ) {
|
|
var help;
|
|
|
|
if ( err ) throw err;
|
|
|
|
help = result.toString().replace( '<%= version %>', require( '../package.json' ).version );
|
|
( stream || process.stderr ).write( '\n' + help + '\n' );
|
|
});
|
|
}; |