Created
September 13, 2018 19:29
-
-
Save bmeck/6bfbe0f979d971501150002537cb911f to your computer and use it in GitHub Desktop.
`node --experimental-policy policy.json checked.js` , from https://github.com/bmeck/node/tree/policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('typeof fs %s', typeof require('fs')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"policies": { | |
"from_tool": { | |
"privileges": { | |
"dependencies": { | |
"fs": false | |
} | |
} | |
} | |
}, | |
"resources": { | |
"file:///absolute/path/to/checked.js": { | |
"integrity": "sha384-SggXRQHwCG8g+DktYYzxkXRIkTiEYWBHqev0xnpCxYlqMBufKZHAHQM3/boDaI/0", | |
"policy": "from_tool" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment