Socket
Book a DemoInstallSign in
Socket

del-symlinks

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

del-symlinks

Delete symlinks using glob

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

Delete symlinks using glob.

Install

$ npm install --save del-symlinks

Usage

async

const delSymlinks = require('del-symlinks');

delSymlinks(['/home/guntur/.*', '!/home/guntur/.*rc']).then(symlinks => {
	console.log('symlinks was deleted:\n', symlinks.join('\n'));
});

sync

const delSymlinks = require('del-symlinks');

const symlinks = delSymlinks.sync(['/home/guntur/*']);

console.log('Symlinks was deleted:\n', symlinks.join('\n'));

API

delSymlinks(patterns, [options])

Returns a promise for an array of deleted symlinks paths.

delSymlinks.sync(patterns, [options])

Returns an array of deleted symlinks paths.

  • patterns

    Type: string, array

    See supported minimatch patterns.

  • options

    Type: object

    See the node-glob options.

    · dryRun

    Type: boolean
    Default: false

    See symlinks what would be deleted instead of deleting

    delSymlinks(['/home/guntur/*', '/home/guntur/.*'], { dryRun: true }).then(symlinks => {
    	console.log('Symlinks that would be deleted:\n', symlinks.join('\n'));
    });
    

License

MIT © Guntur Poetra

Keywords

del

FAQs

Package last updated on 01 Nov 2016

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.