0.1.8 • Published 8 years ago

clean-sentence v0.1.8

Weekly downloads
27
License
-
Repository
github
Last release
8 years ago

Usage

Running

// example.js
var cleanSentence = require('clean-sentence');

console.log(
    cleanSentence(
        '   clean this sentence by triming white spaces, capitalize first letter, adding a trailing dot, removing white space  doublets, removing URLs https://example.org and removing smileys :smile: ',
        {
            do_not_add_trailing_dot: false,
            do_not_uppercase_first_letter: false,
            do_not_remove_unexpected_leading_chars: false,
            do_not_remove_trailing_spaces: false,
            do_not_remove_space_duplicates: false,
            remove_emojis: true,
            remove_urls: true
        }
    )
);

will print

Clean this sentence by triming white spaces, capitalize first letter, adding a trailing dot, removing white space doublets, removing URLs and/or removing smileys.
0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago