1.2.3 • Published 10 months ago

flock-rs v1.2.3

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

10 months ago

1.1.0

10 months ago

1.2.3

10 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago