1.0.4 • Published 10 months ago

intercepticon-npm v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

Intercepticon

Intercepticon is a free and open-source virtual "filesystem" wrapper for NodeJS. It uses its own .inc format. It does NOT support folders.

Installation

Run this in the command-line: npm i intercepticon-npm

Usage

Here is a demo with all the APIs used:

var Intercepticon = require('intercepticon-npm')
var fs = new Intercepticon(__dirname + '/test.inc')

console.log(fs.readdirSync())
fs.writeFileSync('test.txt', 'Hi.')
console.log(fs.readdirSync())
console.log(`Test file exists: `+fs.existsSync('test.txt'))
console.log(fs.readFileSync('test.txt'))
setTimeout(() => {
	fs.unlinkSync('test.txt')
	console.log(fs.readdirSync())
	console.log(`Test file exists: `+fs.existsSync('test.txt'))
}, 7000)

Why is "filesystem" in quotes?

It's because that is NOT a real filesystem but something similar to ASAR

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago