npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

fs-force-delete-win

v1.0.0

Published

force delete files or directories blocked by other process

Downloads

4

Readme

force-delete

force delete files or directories blocked by other process in Windows

PS: Only works in 32 and 64 bit Windows from XP

Install

npm i fs-force-delete-win --save

Example

const forceDelete = require('fs-force-delete')

forceDelete('C:\\git\\testFilePath')

API

|Name|Type|Default|Description| |:--:|:--:|:-----:|:----------| |[deletePath]|{string}| |the path to a file, a folder or a leading part of the path. E.g. K:, C:\Program Files, C:\Docume. /unlock or -u - unlocks the file_or_folder_path. It closes all handles to the files\folder that starts from file_or_folder_path and unloads .dlls which are residing in the files\folder that starts from file_or_folder_path.| |[option]|{object}| {} |option| |[kill]|{boolean}| false |terminates all the apps which are launched from path.| |[staticPath]|{string}| undefined |path to this package's /static, use this when using webpack in electron.|

Known Issue

  1. When using without UAC, it will request UAC by GUI. If you refuse the UAC request, It still get delete success
  2. When using without UAC, it will request UAC by GUI. If you grant the UAC request, It will return before the file is deleted. It will take about 1-2 second.