substr-word

1.0.1 • Public • Published

substr-word

Substr that preserves whole words.

Usage

var substrWord = require('substr-word');

console.log(substrWord('Hello Greetings Goodbye', 20));
//Hello Greetings

Readme

Keywords

Package Sidebar

Install

npm i substr-word

Weekly Downloads

26

Version

1.0.1

License

MIT

Unpacked Size

2.15 kB

Total Files

4

Last publish

Collaborators

  • jameslporter