npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

extract-range

0.1.0

@jonschlinkert

npmHomeRepoSnykSocket
Downloads:0
$ npm install extract-range
DailyWeeklyMonthlyYearly

extract-range NPM version

Extract a string in the given range (e.g. from line X to line Y).

Install

Install with npm:

npm i extract-range --save-dev

Usage

var range = require('extract-range');

Example

var readme = fs.readFileSync('README.md', 'utf8');
var range = extract(readme, 1);
var re = /#\s([^\s]+)/;

console.log(range.match(re)[1]);
//=> 'extract-range'

Author

Jon Schlinkert

  • github/jonschlinkert
  • twitter/jonschlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on August 09, 2014.