max-len

1.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i max-len

Weekly Downloads

54

Version

1.0.2

License

MIT

Last publish

Collaborators

  • kesla