{"id":19681326,"url":"https://github.com/romansky/node-acl","last_synced_at":"2026-05-14T00:42:36.215Z","repository":{"id":6469504,"uuid":"7709382","full_name":"romansky/node-acl","owner":"romansky","description":"A tiny ACL toolkit for Node.js","archived":false,"fork":false,"pushed_at":"2013-01-28T20:56:11.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T06:05:42.044Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/romansky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-19T21:55:38.000Z","updated_at":"2014-05-19T15:21:45.000Z","dependencies_parsed_at":"2022-09-07T10:22:52.323Z","dependency_job_id":null,"html_url":"https://github.com/romansky/node-acl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romansky%2Fnode-acl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romansky%2Fnode-acl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romansky%2Fnode-acl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romansky%2Fnode-acl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romansky","download_url":"https://codeload.github.com/romansky/node-acl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240990766,"owners_count":19889938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T18:07:32.690Z","updated_at":"2026-05-14T00:42:31.195Z","avatar_url":"https://github.com/romansky.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"node-acl [![Build Status](https://travis-ci.org/romansky/node-acl.png)](https://travis-ci.org/romansky/node-acl)\n====\n\nA tiny ACL toolkit for Node.js\n\n## Usage\n\nFirst get an instance of node-acl by passing a set of rules to a factory function\n\n\t{CRUD,acl} = require 'node-acl'\n\tmyRules = [\n\t\t{ role: \"public\", model : \"stories\", crudOps : [CRUD.read] }\n\t\t{ role: \"admin\", model : \"stories\", crudOps : [CRUD.read, CRUD.create, CRUD.delete] }\n\t]\n\taclInstance = acl(myRules)\n\nUse the instance where ever you need the validation in your code\n\n\tresult = aclInstance.validate({role:\"admin\", model: \"stories\", crudOps: [CRUD.create]})\n\t#\u003e result : null\n\tresult = aclInstance.validate({role:\"public\", model: \"stories\", crudOps: [CRUD.update]})\n\t#\u003e result : failed validation:{\"role\":\"public\",\"model\":\"stories\",\"crudOps\":[\"update\"]}\n\t\n## Installation\n\n\tnpm install node-acl\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromansky%2Fnode-acl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromansky%2Fnode-acl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromansky%2Fnode-acl/lists"}