1.2.3 • Published 8 months ago

flock-rs v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 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

8 months ago

1.1.0

8 months ago

1.2.3

8 months ago

1.2.2

8 months ago

1.2.1

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago