1.5.1 • Published 6 years ago

@unocode/password-activation v1.5.1

Weekly downloads
-
License
-
Repository
-
Last release
6 years ago

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
1.5.1

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago