Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F88408498
password.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Oct 18, 16:00
Size
432 B
Mime Type
text/x-c++
Expires
Sun, Oct 20, 16:00 (2 d)
Engine
blob
Format
Raw Data
Handle
21766924
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
password.js
View Options
'use strict'
;
const
StringPrompt
=
require
(
'../types/string'
);
class
PasswordPrompt
extends
StringPrompt
{
constructor
(
options
)
{
super
(
options
);
this
.
cursorShow
();
}
format
(
input
=
this
.
input
)
{
if
(
!
this
.
keypressed
)
return
''
;
let
color
=
this
.
state
.
submitted
?
this
.
styles
.
primary
:
this
.
styles
.
muted
;
return
color
(
this
.
symbols
.
asterisk
.
repeat
(
input
.
length
));
}
}
module
.
exports
=
PasswordPrompt
;
Event Timeline
Log In to Comment