string-segment
Split a string into an array of substrings
Last updated 12 years ago by neftaly .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install string-segment 
SYNC missed versions from official npm registry.

string-segment Build Status

Split a string into an array of substrings, each length characters long.

Install

npm install string-segment

Usage

var stringSegment = require("string-segment");

stringSegment(3, "1234567890"); //=> ["123", "456", "789", "0"]

Note: this module supports currying.

var segmentBy5 = stringSegment(5);

segmentBy5("1234567890"); //=> ["12345", "67890"]

Current Tags

  • 0.0.2                                ...           latest (12 years ago)

2 Versions

  • 0.0.2                                ...           12 years ago
  • 0.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 14
Today 0
This Week 4
This Month 9
Last Day 0
Last Week 2
Last Month 2
Dependencies (1)
Dev Dependencies (1)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE