openbsd-pledge
OpenBSD pledge(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-pledge 
SYNC missed versions from official npm registry.

openbsd-pledge

OpenBSD pledge(2) bindings for Node.js with prebuilds

Usage

const pledge = require('openbsd-pledge')
const fs = require('fs')

pledge('stdio')
const fd = fs.openSync('test.txt', 'r', 0o555) // SIGABRT here

API

pledge([promise], [execpromise])

promise and execpromise can be either space separated stringe of promises or null. promise applies to the current process while execpromise applies to child processes.

Please refer to the pledge(2) docs

Install

npm install openbsd-pledge

License

ISC

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

2 Versions

  • 1.0.1                                ...           2 years ago
  • 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 0
Dependencies (2)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |