@unocode/password-activation

1.5.1 • Public • Published

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

Package Sidebar

Install

npm i @unocode/password-activation

Weekly Downloads

0

Version

1.5.1

License

none

Unpacked Size

8.29 kB

Total Files

3

Last publish

Collaborators

  • jonathandamiani
  • kazzkiq