small module to warn/error when the length of a row is to long
npm install max-lensmall module to warn/error when the length of a row is to long
Download node at nodejs.org and install it, if you haven't already.
``sh`
npm install max-len --save
`js
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));
`
`sh``
npm install
npm test
None
- tape: tap-producing test harness for node and browsers
MIT
_Generated by package-json-to-readme_