@unocode/password-activation

Enables UnoCode execution on a page only if user has a password.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@unocode/password-activation
Minified + gzip package size for @unocode/password-activation in KB

Readme

UnoCode Password Activation Component

Enables UnoCode execution on a page only if user has a password.

Installation

npm i -s @unocode/password-activation

Usage

import UnoPasswordActivation from '@unocode/password-activation';

const component = new UnoPasswordActivation({
  target: document.body,
  data: {
    password: 'hello123'
  }
});

component.on('passwordChanged', (data) => {
  data.password;        // string
  data.inputPassword;   // string
  data.matches;         // boolean (true|false)
});

Development

This component uses Svelte, a reactive UI library.

Run locally

npm run dev

Build for Production

npm run build

Publish new version

In order to publish, you have to be part of @unocode organization on npm.

npm publish

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.