 autoprefixer = require('../lib/autoprefixer')
 Binary       = require('../lib/autoprefixer/binary')
 
-fs     = require('fs')
-os     = require('os')
-child  = require('child_process')
+fs    = require('fs-extra')
+child = require('child_process')
 
 class StringBuffer
   constructor: -> @content  = ''

        callback(@stdout.content, error)

  afterEach ->
    if fs.existsSync(tempDir)
      fs.unlinkSync("#{tempDir}/#{i}") for i in fs.readdirSync(tempDir)
      fs.rmdirSync(tempDir)

  css      = 'a { transition: all 1s; }'
  prefixed = "a {\n  -webkit-transition: all 1s;\n  transition: all 1s;\n}"

    else if event == 'end'
      callback()

tempDir = __dirname + '/fixtures'

write = (file, css) ->
  fs.mkdirSync(tempDir) unless fs.existsSync(tempDir)
