openbsd-unveil
OpenBSD unveil(2) bindings for Node.js with prebuilds
Last updated 2 years ago by emilbayes .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install openbsd-unveil 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

1 Versions

  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |