Patreon / patreon-js

Use the Patreon API via OAuth.
MIT License
151 stars 30 forks source link

api is incorrect: babel compiles `export default` to `module.exports.default` #4

Closed balupton closed 8 years ago

balupton commented 8 years ago

actual API is:

const patreon = require('patreon').default
const oauth = require('patreon').oauth

as a side note, considering this is only going to be on node.js, and considering node.js may never support es modules, using es modules on node is a bit of a waste of time, something like https://github.com/bevry/editions can be used instead for having the future today while having backwards compatibility support

21echoes commented 8 years ago

Awesome! We'll update the readme accordingly