expose utils

master
Aaron Heckmann 12 years ago
parent 9898df55c0
commit 242a5ed212
  1. 1
      index.js
  2. 12
      test/utils.js

@ -89,6 +89,7 @@ require("./lib/command")(gm.prototype);
*/
module.exports = exports = gm;
module.exports.utils = require('./lib/utils');
module.exports.version = JSON.parse(
require('fs').readFileSync(__dirname + '/package.json', 'utf8')
).version;

@ -0,0 +1,12 @@
// gm - Copyright Aaron Heckmann <aaron.heckmann+github@gmail.com> (MIT Licensed)
var assert = require('assert')
module.exports = function (_, dir, finish, gm) {
assert.equal('function', typeof gm.utils.buffer);
assert.equal('function', typeof gm.utils.escape);
finish();
}
Loading…
Cancel
Save