
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Manacle is a lightweight ACL implementation for Node.js and the browser.
Create a new ACL:
var acl = manacle.create();
Define some rules:
var user = { ... };
acl.allow('read', 'post');
if (user) {
acl.allow('create', 'post');
acl.allow(['update', 'delete'], 'post', function(post) {
return post.user === user;
});
if (user.admin) {
acl.allow('*', 'post');
}
if (user.blocked) {
acl.deny(['create', 'update', 'delete'], 'post');
}
}
Check various rules:
var post = { ... };
// `true` for users who are not blocked
acl.allowed('create', 'post');
// `true` for all users (the given post object is ignored
// and unnecessary since there is no condition defined)
acl.allowed('read', 'post', post);
// `true` for users who are not blocked and either own
// the post or are an admin
acl.allowed('update', 'post', post);
acl.allowed('delete', 'post', post);
// `true` (undefined rules are denied by default)
acl.denied('foo', 'bar');
Note that the order in which the rules are defined matters as each newly defined rule takes precedence over past rules.
Releases are available on GitHub or via NPM.
npm install manacle
Development: manacle.js
Production: manacle.min.js
Allow (or deny) the specified action(s) and subject(s), optionally only if the given condition holds.
Arguments:
Check if the specified action(s) and subject(s) are allowed (or denied), optionally checking a condition against any extra arguments.
Arguments:
FAQs
Lightweight ACL for Node.js and the browser
The npm package manacle receives a total of 1 weekly downloads. As such, manacle popularity was classified as not popular.
We found that manacle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.