@unocode/password-activation
v1.5.1
Published
Enables UnoCode execution on a page only if user has a password.
Downloads
3
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