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

hotfile

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hotfile - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

1

models/Hot.js

@@ -7,2 +7,3 @@ const p = require('path')

constructor(path){
if(p.extname(path) == "" && !this.existsSync(path)) this.mkdirSync(path)
const stat = fs.statSync(path)

@@ -9,0 +10,0 @@ this.isFile = stat.isFile()

2

package.json
{
"name": "hotfile",
"version": "0.1.7",
"version": "0.1.8",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

global.z = (v) => console.log(v)
const { Hotfolder, Hotfile, Hot } = require('./index')
// const myfolder = require('hotfile')('./myfolder')
const dirpath = './myfolder'
const dirpath = './myfolder/sub01/sub02'
const filepath = './myfile.txt'
if(!Hot.exists(dirpath)) Hot.mkdir(dirpath)
// if(!Hot.exists(dirpath)) Hot.mkdir(dirpath)
const myfolder = new Hotfolder(dirpath)

@@ -8,0 +8,0 @@ // const myfile = new Hotfile(filepath)

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