Skip to content

Commit 8694688

Browse files
committed
feat(casl): implements basic support for ACL checks
First version of CASL. 1.0.0 will be released after documentation is added
1 parent c96be8e commit 8694688

20 files changed

+3657
-1
lines changed

.babelrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"presets": [
3+
[
4+
"es2015",
5+
{
6+
"modules": false
7+
}
8+
]
9+
],
10+
"plugins": [
11+
"external-helpers"
12+
]
13+
}

.eslintrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "airbnb-base",
3+
"rules": {
4+
"import/prefer-default-export": 0,
5+
"no-plusplus": 0,
6+
"comma-dangle": 0,
7+
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
8+
"no-param-reassign": ["error", { "props": false }],
9+
"no-mixed-operators": 0,
10+
"no-prototype-builtins": 0
11+
}
12+
}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ bower_components
3131

3232
# Compiled binary addons (http://nodejs.org/api/addons.html)
3333
build/Release
34+
dist/
3435

3536
# Dependency directories
3637
node_modules/
@@ -56,4 +57,3 @@ typings/
5657

5758
# dotenv environment variables file
5859
.env
59-

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# CASL
2+
3+
CASL is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access. All permissions are defined in a single location (the `Ability` class) and not duplicated across controllers, views, and database queries.
4+
5+
## Installation
6+
7+
```sh
8+
npm install casl --save
9+
```
10+
11+
## License
12+
13+
[MIT License](http://www.opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)