var bindings = require('./bindings')(
    '../compiled/'+process.platform+'/'+process.arch+'/weakref.node'
  , '../build/Release/weakref.node'
  , '../build/default/weakref.node'
)

module.exports = bindings.create

// backwards-compat with node-weakref
bindings.weaken = bindings.create

Object.keys(bindings).forEach(function (name) {
  module.exports[name] = bindings[name]
})
