{"id":17159141,"url":"https://github.com/scull7/privilege-express","last_synced_at":"2025-08-08T12:12:39.214Z","repository":{"id":125999482,"uuid":"45876815","full_name":"scull7/privilege-express","owner":"scull7","description":"An ExpressJS interface for the privilege module.","archived":false,"fork":false,"pushed_at":"2015-12-06T07:26:57.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-29T07:50:57.061Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scull7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-10T00:36:28.000Z","updated_at":"2016-01-06T17:31:06.000Z","dependencies_parsed_at":"2023-03-14T09:00:46.396Z","dependency_job_id":null,"html_url":"https://github.com/scull7/privilege-express","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scull7/privilege-express","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scull7%2Fprivilege-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scull7%2Fprivilege-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scull7%2Fprivilege-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scull7%2Fprivilege-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scull7","download_url":"https://codeload.github.com/scull7/privilege-express/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scull7%2Fprivilege-express/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269417660,"owners_count":24413414,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-14T22:13:27.657Z","updated_at":"2025-08-08T12:12:39.138Z","avatar_url":"https://github.com/scull7.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/scull7/privilege-express.svg)](https://travis-ci.org/scull7/privilege-express)\n[![Coverage Status](https://coveralls.io/repos/scull7/privilege-express/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/scull7/privilege-express?branch=master)\n\n# privilege-express\nAn ExpressJS interface for the privilege module.\n\n## Example Usage\n\n```javascript\n\nvar app    = require('express')()\nvar privilege = require('privilege')({\n  pathMap: {\n    '/my/test/path': 'my:test:path:list'\n    '/my/test/path/:id': 'my:test:path:item'\n    '/my/other/:id': 'my:other:item'\n    '/my/other': 'my:other:list'\n    '/my/other/:id/action': 'my:other:item:action'\n  },\n  roleMap: {\n    'root': {\n      '*': [ 'get', 'post', 'put', 'delete' ] // root can access all\n    },\n    'reader': {\n      'my:test:path:list': [ 'get' ]\n      'my:test:path:item': [ 'get' ]\n      'my:other:item': [ 'get' ]\n      'my:other:list': [ 'get' ]\n    }\n    'writer': {\n      'my:test:path:list': [ 'get' ]\n      'my:test:path:item': [ 'get', 'post', 'put', 'delete' ]\n      'my:other:item': [ 'get', 'post', 'put', 'delete' ]\n      'my:other:item:action': [ 'post' ]\n      'my:other:list': [ 'get' ]\n    }\n  }\n});\n\napp.use(privilege);\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscull7%2Fprivilege-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscull7%2Fprivilege-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscull7%2Fprivilege-express/lists"}