diff --git a/README-cmd.md b/README-cmd.md index 43df736..8b4ebad 100644 --- a/README-cmd.md +++ b/README-cmd.md @@ -20,6 +20,12 @@ export STRYKER_DASHBOARD_API_KEY= echo $STRYKER_DASHBOARD_API_KEY npx stryker run +# test demo +node ./example/commonjs.js +ts-node ./example/es6.ts +(cd example && node remoteCommonjs.js) +(cd example && ts-node remoteEs6.ts) + ## npm npm run build npm publish --dry-run diff --git a/example/package.json b/example/package.json new file mode 100644 index 0000000..64cb2d0 --- /dev/null +++ b/example/package.json @@ -0,0 +1,6 @@ +{ + "name": "example", + "dependencies": { + "bahttext": "*" + } +} diff --git a/example/remoteCommonjs.js b/example/remoteCommonjs.js new file mode 100644 index 0000000..c03ed01 --- /dev/null +++ b/example/remoteCommonjs.js @@ -0,0 +1,28 @@ +const { bahttext } = require('bahttext') + +console.log(bahttext(8.00)) +console.log(bahttext(5678.00)) +console.log(bahttext(63147.89)) +console.log(bahttext(51000001.00)) +console.log(bahttext(317.10)) +console.log(bahttext(422.26)) +console.log(bahttext(11.11)) +console.log(bahttext(191415.11)) +console.log(bahttext(1.01)) +console.log(bahttext(5678.46)) +console.log(bahttext(0.67)) +console.log(bahttext(-3.00)) +console.log(bahttext(-232.00)) +console.log(bahttext(-44444.00)) +console.log(bahttext(-5678934.00)) +console.log(bahttext(-201.00)) +console.log(bahttext(-317.10)) +console.log(bahttext(-5723.00)) +console.log(bahttext(-11.00)) +console.log(bahttext(-45621.21)) +console.log(bahttext(-191415.11)) +console.log(bahttext(-282622.22)) +console.log(bahttext(-1.04)) +console.log(bahttext(-574.45)) +console.log(bahttext(-345.23)) +console.log(bahttext(-0.20)) diff --git a/example/remoteEs6.ts b/example/remoteEs6.ts new file mode 100644 index 0000000..ebe8365 --- /dev/null +++ b/example/remoteEs6.ts @@ -0,0 +1,28 @@ +import { bahttext } from 'bahttext' + +console.log(bahttext(8.00)) +console.log(bahttext(5678.00)) +console.log(bahttext(63147.89)) +console.log(bahttext(51000001.00)) +console.log(bahttext(317.10)) +console.log(bahttext(422.26)) +console.log(bahttext(11.11)) +console.log(bahttext(191415.11)) +console.log(bahttext(1.01)) +console.log(bahttext(5678.46)) +console.log(bahttext(0.67)) +console.log(bahttext(-3.00)) +console.log(bahttext(-232.00)) +console.log(bahttext(-44444.00)) +console.log(bahttext(-5678934.00)) +console.log(bahttext(-201.00)) +console.log(bahttext(-317.10)) +console.log(bahttext(-5723.00)) +console.log(bahttext(-11.00)) +console.log(bahttext(-45621.21)) +console.log(bahttext(-191415.11)) +console.log(bahttext(-282622.22)) +console.log(bahttext(-1.04)) +console.log(bahttext(-574.45)) +console.log(bahttext(-345.23)) +console.log(bahttext(-0.20))