1.2.3 • Published 6 months ago

flock-rs v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

flock-rs

File locker based on Rust for Node.js

Requirements

Installation

npm i flock-rs

Usage

const path = require("path");
const { Flock } = require("flock-rs");

const filePath = path.resolve("/tmp/file.lock");
const flock = new Flock(filePath);

(async () => {
  await flock.lock();
  console.log("File locked", filePath);
  await flock.unlock();
  console.log("File unlocked", filePath);
})();
1.2.0

6 months ago

1.1.0

6 months ago

1.2.3

6 months ago

1.2.2

6 months ago

1.2.1

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

6 months ago