0.1.1 • Published 10 years ago

nopaths v0.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

NoPaths

Build Status

This module removes valid filename paths from input string (filenames are kept).

Installation

'npm install nopaths'

Usage

var nopaths = require('nopaths');

var somePath = 'Hey, /home/username/Documents/sweet.txt was not touched!';
nopaths(somePath) === 'Hey, sweet.txt was not touched!'; //true, if /home/username/Documents/ exists

Tests

'npm test'