javascript - Aurelia js add npm package -
i want use following npm package https://www.npmjs.com/package/poker-evaluator can found on github: github.com/chenosaurus/poker-evaluator
on project folder ran following command line, npm install poker-evaluator --save
and seems installed library -> package json
i want able run functions module(poker-evaluator) , can't insert module.
tried multiple times , in different ways ...
unfortunately, package looking @ relies on nodejs apis, cannot used in browser. if @ source, you'll see: https://github.com/chenosaurus/poker-evaluator/blob/master/lib/pokerevaluator.js#l1
var fs = require("fs"); var path = require("path");
these node apis work files. you'll have use package on server , wrap api aurelia application talk to.
Comments
Post a Comment