2024-10-17 10:24:18 -04:00
|
|
|
<!Doctype html>
|
|
|
|
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>@ztimson/utils sandbox</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<script type="module">
|
2024-12-27 22:20:27 -05:00
|
|
|
import {PES, PathEvent} from './dist/index.mjs';
|
|
|
|
const perm = PES`storage/test/john-flag.png:r`;
|
|
|
|
const perms = [ 'logs/Momentum:c', 'storage/test:r', 'data/Repos:r', 'email:c' ];
|
2024-10-17 10:24:18 -04:00
|
|
|
|
2024-12-27 22:20:27 -05:00
|
|
|
console.log(PathEvent.filter(perms, perm));
|
2024-10-17 10:24:18 -04:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|