node-pledge
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "node-pledge", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "OpenBSD's pledge(2) extension for node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,10 +8,16 @@ node-pledge | ||
`pledge(2)` allows process to ratchet down the privlidges it requires to run, if it attempts to access | ||
a privlidge it has pledged to not use, it will be killed by the kernel. | ||
`pledge(2)` allows a process to ratchet down the privileges it requires to run, if it attempts to access | ||
a privilege it has pledged to not use, it will be killed by the kernel. | ||
# Example Usage | ||
Install via npm: | ||
``` | ||
npm install --save node-pledge | ||
``` | ||
```JavaScript | ||
var http = require('http'); | ||
var pledge = require('pledge'); | ||
var pledge = require('node-pledge'); | ||
@@ -18,0 +24,0 @@ pledge.init("stdio rpath wpath ioctl"); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
4928
10
18
52
2