Skip to content

Instantly share code, notes, and snippets.

@philihp
Last active July 5, 2024 23:11
Show Gist options
  • Save philihp/bd7ed8daa7871d1922a8027e0540db90 to your computer and use it in GitHub Desktop.
Save philihp/bd7ed8daa7871d1922a8027e0540db90 to your computer and use it in GitHub Desktop.
openskill-test
const openskill = require('openskill')
console.log(openskill);
import * as openskill from 'openskill';
console.log(openskill);
{
"dependencies": {
"openskill": "^4.0.2"
},
"scripts": {
"test": "npm run node && npm run module",
"node": "node index.cjs",
"module": "node index.mjs"
}
}
@philihp
Copy link
Author

philihp commented Jul 5, 2024

$ npm run test

> test
> npm run node && npm run module


> node
> node index.cjs

{
  ordinal: [Getter],
  predictDraw: [Getter],
  predictWin: [Getter],
  rate: [Getter],
  rating: [Getter]
}

> module
> node index.mjs

[Module: null prototype] {
  ordinal: [Function: ordinal],
  predictDraw: [Function: predictWin2],
  predictWin: [Function: predictWin],
  rate: [Function: rate],
  rating: [Function: rating]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment