Skip to content
/ summary Public

Simplified version of node-summary, no Babel.

License

Notifications You must be signed in to change notification settings

rypx/summary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

summary

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.

Why?

One of my repo somehow got strange error when i using original node-summary, so i decide to fork the repository and make changes.

Installation

npm i rypx/summary

Example

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.

Why it's not working?

  1. Your content need at least 2 paragraph, splitted by \n\n. So, add those for every paragraph, maybe?

  2. Open new issue.

I have C grade in English, please help me and i'm sorry.