  "use strict"
 // import crypto from 'crypto'
  const filename = process.argv[2],
	crypto = require('crypto'),
	fs = require('fs'),
	shasum = crypto.createHash('md5'),
	s = fs.ReadStream(filename)

  s.on('data', d => shasum.update(d))

  s.on('end', () => {
    const d = shasum.digest('hex')
    console.log(`${d} ${filename}`)
  });

  "use strict"
  import crypto from 'crypto'
  import fs from 'fs'
  const filename = process.argv[2],
	shasum = crypto.createHash('md5'),
	s = fs.ReadStream(filename)

  s.on('data', d => shasum.update(d))

  s.on('end', () => {
    const d = shasum.digest('hex')
    console.log(`${d} ${filename}`)
  });

Use ES6 import