Skip to content

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

License

Notifications You must be signed in to change notification settings

emilbayes/openbsd-pledge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published