New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sazze/acl

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sazze/acl

Access Control Library

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
3
Weekly downloads
 
Created
Source

ACL

Access Control Library

Usage

var acl = require('@sazze/acl')(config);

var levels = acl.LEVELS;

API

acl.is[LevelName](level: Integer): Boolean

Checks if the given level is >= the value corresponding to the LevelName

acl.eq[LevelName](level: Integer): Boolean

Checks if the given level is == the value corresponding to the LevelName

acl.isAtLeast(levelYouHave: Integer, levelYouWant: Integer): Boolean

Checks if the levelYouHave >= the levelYouWant it to be

acl.getAvailableLevels(levelYouHave: Integer): Array

Returns and array of all levels this user has access to

Keywords

FAQs

Package last updated on 28 Sep 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc