nopaths

0.1.1 • Public • Published

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'

Package Sidebar

Install

npm i nopaths

Weekly Downloads

2

Version

0.1.1

License

MIT

Last publish

Collaborators

  • seriousalexej