max-len
v1.0.2
Published
small module to warn/error when the length of a row is to long
Downloads
918
Readme
max-len
small module to warn/error when the length of a row is to long
Installation
Download node at nodejs.org and install it, if you haven't already.
npm install max-len --save
Usage
var maxLen = require("max-len");
var string = 'beep boop'; // string of length 9
// empty array
console.log(maxLen(string, 10, 15));
// one warning
console.log(maxLen(string, 5, 10));
// one error
console.log(maxLen(string, 3, 5));
Tests
npm install
npm test
Dependencies
None
Dev Dependencies
- tape: tap-producing test harness for node and browsers
License
MIT
Generated by package-json-to-readme