New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@camol/file-lock

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@camol/file-lock

使用 node-addon-api 开发,用于独占打开文件。

latest
Source
npmnpm
Version
1.1.4
Version published
Maintainers
1
Created
Source

file-lock

使用 node-addon-api 开发,用于独占打开文件。

Support

ossupport
windows
mac
linux

Install Package

yarn add @camol/file-lock

Usage

const FileLock = require("@camol/file-lock");

const filePath = "/tmp/xxx";
const fileLock = new FileLock(filePath);

fileLock.lock(); // boolean
fileLock.isLocked(); // true
//
fileLock.unlock();
fileLock.isLocked(); // false

FAQs

Package last updated on 21 Sep 2022

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