extract-summary extracts summaries from blocks of text.
const extractSummary = let summary =
That yields a string that can be used as a summary in blogs and similar things.
Please see the source to see a grasp of the algorithm being used. It is simple, but it is not just slicing the text without looking at it. See the tests for more examples.
Licensed in the MIT terms.