diff --git a/README.md b/README.md index b0aa0fe..6fd6306 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ jinter.evaluate(code); --- Inject your own functions, objects, etc: ```ts -import { Jinter } from './dist/index.js'; +import { Jinter } from 'jintr'; const jinter = new Jinter(); diff --git a/test.mjs b/test.mjs deleted file mode 100644 index 4150761..0000000 --- a/test.mjs +++ /dev/null @@ -1,11 +0,0 @@ -import { Jinter } from './dist/index.js'; -const code = ` - const a = "this is a test"; - const arr = String.prototype.split.call(a, ""); - const joined = Array.prototype.join.call(arr, ""); - console.log(new Date("2021-01-01").getTime()); - `; - -const jinter = new Jinter(code); - -console.log(jinter.interpret());