     filename.base = filename.base[...-filename.ext.length] + '.pdf'
   pdf = path.format filename
   console.log '=>', pdf
-  output = child_process.spawnSync 'inkscape', [
+  output = require('child_process').spawnSync 'inkscape', [
     '-z'
     "--file=#{svg}"
     "--export-pdf=#{pdf}"

  @title: "CoffeeScript mapping file"
  @help: "Object mapping symbol names to SYMBOL e.g. dot: 'dot.svg'"
  @parse: (data) ->
    new @ CoffeeScript.eval data

class Mappings
  constructor: (@maps = []) ->

  @encoding: 'binary'
  @title: "Spreadsheet drawing(s) (Excel/OpenDocument/Lotus/dBASE)"
  @parse: (data) ->
    xlsx = require 'xlsx'
    workbook = xlsx.read data, type: 'binary'
    ## https://www.npmjs.com/package/xlsx#common-spreadsheet-format
    @load (
