ubl

unlink-broken-links

Find broken symlinks and destroy them

Showing:

Popularity

Downloads/wk

1

GitHub Stars

0

Maintenance

Last Commit

5yrs ago

Contributors

2

Package

Dependencies

5

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

unlink-broken-links Build Status

Find broken symlinks and destroy them

Install

$ npm install -g unlink-broken-links

Usage

unlink-broken-links [directory]

Options:
  --version        Show version number                                 [boolean]
  --recursive, -r  Recursively walk the directory     [boolean] [default: false]
  --help, -h       Show help                                           [boolean]

Programmatic API

var unlinkBrokenLinks = require('unlink-broken-links');

// "recursive" defaults to false
unlinkBrokenLinks('/some/path', {recursive: true})
  .then(function(result) {
    console.log(result.removed); // array of removed files (if any)
    console.log(result.errors); // array of errors (if any)
  });

// or callback-style
unlinkBrokenLinks('/some/path', {recursive: true}, function(err, result) {
  // "err" will only be truthy if something's terribly wrong 
  console.log(result.removed); // array of removed files (if any)
  console.log(result.errors); // array of errors (if any)
});

License

© 2015 Christopher Hiller. Licensed MIT.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial