Closed paceaux closed 8 months ago
Branch created: https://github.com/paceaux/methodius/tree/issue18-convert-to-ts
How to test this
1: Create a test project (e.g. methodius-test)
put this in an index.js file:
const Methodius = require('methodius');
const test = new Methodius('Hey there frank. How is it going? Is there anything you would like to do? I am wondering what happens here. I am excited. This should be fun.');
const ngrams = test.bigrams;
console.log(ngrams);
console.log(test.trigrams);
scripts
for the project's package.json
"scripts": {
"test": "node index.js"
}
3. In the Methodius package, set it as a link:
```Bash
npm link
npm unlink methodius && npm link methodius && npm run test
Expected result:
console.log
runs without error.
This runs without error. It was a lot of effort. Got released in 2.0.0 last night. Someone please clap.
:clap:
Project should be in TS b/c that would be easier for documentation.