Skip to content

About

Retrieve the number of words in a string.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

Repository files navigation

lexis-count Build Status

Retrieve the number of words in a string.

Install

~ ❯❯❯ npm install lexis-count

Usage

const lexisCount = require('lexis-count');

lexisCount('Lorem ipsum dolor sit amet')
//=> 5

lexisCount(' Lorem ipsum dolor   sit amet  ')
//=> 5

API

lexisCount()

Type: string

Returns the number of words in a string.

Related

  • lexis - CLI for this module

Credits

License

MIT © Nikolaos Kamarinakis

About

Retrieve the number of words in a string.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages