Open danpaulsmith opened 8 years ago
Looking into this a bit more, I realise this has been written in es6, and I think I need a transpiler such as Babel to convert it to native NodeJS. I'm not having much luck.
Would you mind adding to the README some simple steps in order to get a simple script working, using this for example:
var openrefine = require('openrefine')
// another server; same usage
var server = openrefine.server('http://localhost:3333')
// projects metadata
openrefine
.projects()
.then(console.log)
Hi,
I'd like to try this out, but not sure how to.
I have a working version of OpenRefine on a linux box.
I have also installed this package via
npm install openrefine
When I try to run a basic script it errors with this:
Has this been written in ES6? The syntax looks funny for a node script. Then again, I could just be out of touch with what's allowed in NodeJS scripts these days...!