1.0.0 • Published 7 years ago
openbsd-unveil v1.0.0
openbsd-unveil
OpenBSD unveil(2) bindings for Node.js with prebuilds
Usage
const unveil = require('openbsd-unveil')
const fs = require('fs')
unveil(__dirname, 'rwc') // can read, write and create files from here down
const fd = fs.openSync('../test.txt', 'a+', 0o555)
unveil() // Disable unveilAPI
unveil([path], [permissions])
Unveil path with permissions, both being string or null to disable
unveil.
Please refer to the unveil(2) docs
Install
npm install openbsd-unveilLicense
1.0.0
7 years ago