Socket
Socket
Sign inDemoInstall

chmod-checkbox

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    chmod-checkbox

Simple and ready to use chmod based checkbox web component with StencilJS


Version published
Weekly downloads
17
decreased by-5.56%
Maintainers
1
Install size
222 kB
Created
Weekly downloads
 

Readme

Source

Built With Stencil

WebComponent Chmod Checkbox

CHMOD based animated checkbox WebComponent with StencilJS

npm version npm Platform - Android and iOS License: MIT styled with prettier

WebComponent Chmod Checkbox WebComponent Chmod Checkbox

Chmod Checkbox comes with three (3) animated checkbox which includes READ, WRITE and EXECUTE values. These text values are customizable. It has built-in chmod calculator for each value.

Fundamental CHMOD Architecture

ValueRWXDescription
0000NO_PERMISSION
1100READ
2010WRITE
3110READ/WRITE
4001EXECUTE
5101READ/EXECUTE
6011WRITE/EXECUTE
7111ALL

Installation

  • Put a script tag similar to this <script src="https://unpkg.com/chmod-checkbox@latest/dist/chmod-checkbox.js"></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Node Modules

  • Run npm install chmod-checkbox --save
  • Put a script tag similar to this <script src='node_modules/chmod-checkbox/dist/chmod-checkbox.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

In a stencil-starter app

  • Run npm install chmod-checkbox --save
  • Add an import to the npm packages import chmod-checkbox;
  • Then you can use the element anywhere in your template, JSX, html etc

Usage

<chmod-checkbox permission="0" />

How to get value from a prop?

document.querySelectorAll("chmod-checkbox")[0].base
document.querySelectorAll("chmod-checkbox")[0].permission
document.querySelectorAll("chmod-checkbox")[0].first
document.querySelectorAll("chmod-checkbox")[0].middle
document.querySelectorAll("chmod-checkbox")[0].last

Configuration - Props

PropertyTypeDefaultDescription
permissionnumber0get the changing permission value

Future Plans

  • LICENSE
  • Customizable colors
  • Make another web-component with just animated checkbox and implement it on this library
  • Write an article about the lib on Medium

Author

FreakyCoder, kurayogun@gmail.com

License

WebComponent Chmod Checkbox is available under the MIT license. See the LICENSE file for more info.

FAQs

Last updated on 02 Oct 2019

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc