Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fslockjs

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fslockjs - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

10

examples/usage.js

@@ -6,11 +6,13 @@ const FSLock = require('../src/FSLock/FSLock');

(async ()=>{
(async () => {
// Will auto-process this as autoexec is true.
const createDirJob = queue.add('Directory.create','./myfolder');
const createDirJob = queue.add('Directory.create', './myfolder');
const createFileJob = queue.add('File.create', './myfolder/myfile.json', { something: true });
const createFileJob = queue.add('File.create', './myfolder/myfile.json', {something: true});
await createFileJob.execution();
const file = await queue.add('File.read', './myfolder/myfile.json').execution();
console.log({storedFile: file.result});
console.log(file.result);
// Needed in order to release pending intervals
await queue.stop();
})()

9

package.json
{
"name": "fslockjs",
"version": "2.0.2",
"version": "2.0.3",
"description": "Easy to use file system queue with locking and events. Provide Asynchronous utilities for Directories and File",

@@ -32,8 +32,5 @@ "main": "index.js",

"devDependencies": {
"chai": "^4.2.0",
"mocha": "^8.2.1"
},
"dependencies": {
"lodash.map": "^4.6.0"
"chai": "^4.3.10",
"mocha": "^10.2.0"
}
}

@@ -1,3 +0,1 @@

const map = require('lodash.map');
const processQueue = async (self) => {

@@ -4,0 +2,0 @@ if (self.queue.length > 0) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc