convert CLI imports to ES6

This commit is contained in:
Sebastian McKenzie
2015-07-24 21:10:11 +01:00
parent 3d416a6fbe
commit 07e1ce8bf4
3 changed files with 16 additions and 22 deletions

View File

@@ -1,10 +1,8 @@
#!/usr/bin/env node
var pathExists = require("path-exists");
var readline = require("readline");
var child = require("child_process");
var path = require("path");
var fs = require("fs");
import pathExists from "path-exists";
import readline from "readline";
import child from "child_process";
import path from "path";
import fs from "fs";
function spawn(cmd, args, callback) {
console.log(">", cmd, args);