Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

openbsd-unveil

1.0.0 • Public • Published

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 unveil

API

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-unveil

License

ISC

Keywords

none

Install

npm i openbsd-unveil

DownloadsWeekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

15.3 kB

Total Files

8

Last publish

Collaborators

  • avatar