🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

extract-range

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extract-range

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

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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

License

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

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

Keywords

range

FAQs

Package last updated on 09 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts