Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@arturdoruch/flash-messenger
Advanced tools
Displays flash messages on the screen.
yarn add @arturdoruch/flash-messenger
import FlashMessenger from '@arturdoruch/flash-messenger';
const flashMessenger = new FlashMessenger({
// Options. See options description below.
});
// Adds messages with custom types to the stack.
flashMessenger.add('error', 'An error occurred.');
flashMessenger.add('notice', 'Notice message.');
flashMessenger.add('success', 'Success message.');
// Displays messages of all types.
flashMessenger.display();
// Displays messages of specific type.
flashMessenger.display('error');
Global options applied to the all FlashMessenger instances. Set by calling function setOptions().
import { setOptions as flashMessengerSetOptions } from '@arturdoruch/flash-messenger';
flashMessengerSetOptions({
// Options
});
elementsClassPrefix
string (default: flash-message
)
The class name prefix of the message container and item elements.
all the common options
Options specific for FlashMessenger instance.
import FlashMessenger from '@arturdoruch/flash-messenger';
const flashMessenger = new FlashMessenger({
// Options
});
containerClassName
string (default: null
)
Adds custom class name for message container div element.
all the common options
Global and per instance FlashMessenger options.
removeAfter
int|null (default: 5
)
Time (in seconds) after message item will be removed form the container. If null message item will not be removed until will be clicked.
removeOnClick
boolean (default: true
)
Specifies whether the message item should be removed after clicking.
positionVertical
string (default: top
)
Vertical position of displayed message container. One of: top
, center
, bottom
.
positionHorizontal
string (default: center
)
Horizontal position of displayed message container. One of: left
, center
, right
.
For styling flash messages use existing CSS styles import '@arturdoruch/flash-messenger/styles/flash-messenger.css';
or create your own.
FAQs
Displays flash messages on the screen.
The npm package @arturdoruch/flash-messenger receives a total of 0 weekly downloads. As such, @arturdoruch/flash-messenger popularity was classified as not popular.
We found that @arturdoruch/flash-messenger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.