Simple Package to summarizes your text.
This package is actually base/forked from jbrooksuk/node-summary and shlomibabluki/5473521, but with no browser support or babel thingy. and some slightly changes (not really).
Thank you @jbrooksuk for your awesome package and @shlomibabluki for the gist.
One of my repo
somehow got strange error when i using original node-summary
, so i decide to fork the repository and make changes.
npm i rypx/summary
Example content from WikiHow Article
const Summary = require('summary')
let result = Summary('Improving Your Walking Gait', content)
console.log(result)
$ node .
Improving Your Walking Gait
After you cool down, stretch your muscles gently
Walk with your head up, while looking forward.
When walking, you should step forward with your foot.
This usually means that your hip flexors and hamstrings are too tight.
This will feel strange at first, but eventually your knees will adapt
How can you tell if you’re walking fast enough?
Take the stairs when you usually take the elevator.
-
Your content need at least 2 paragraph, splitted by
\n\n
. So, add those for every paragraph, maybe? -
Open new issue.
I have C grade in English, please help me and i'm sorry.