Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
native-toast
Advanced tools
Readme
Native-like toast notification but for the web. (JS + CSS ≈ 4KB)
$ npm install --save native-toast
NPMCDN: https://unpkg.com/native-toast/dist/
First import native-toast/dist/native-toast.css
, then:
import nativeToast from 'native-toast'
nativeToast({
message: 'wait wait!',
position: 'north-east',
// Self destroy in 5 seconds
timeout: 5000,
type: 'warning'
})
// or nativeToast.warning(options)
Four types: success
warning
info
error
Type: string
Default: ''
Toast message.
Type: string
Default: south-east
Values: center
west
east
south
south-west
south-east
north
north-west
north-east
Toast position.
Type: boolean
Default: false
Set border-radius
to 33px
instead of 3px
. Has no effect when edge === false
.
Type: number
Default: 3000
Self destroy in specfic timeout. If given 0
or `false then toast will never self destroy.
Type: string
Default: undefined
One of success
warning
info
error
.
A short-hand usage: nativeToast.success(opts)
nativeToast.error(opts)
and such.
Type: boolean
Default: true
Set to false
to disable icon.
Type: boolean
Default: false
Show toast on the edge.
Type: boolean
Default: false
Close the toast when clicked.
Type: HTMLElement[]
Optionally provide an array of HTML elements to insert after the message
.
MIT © EGOIST
FAQs
Native-like toast notification but for the web.
The npm package native-toast receives a total of 563 weekly downloads. As such, native-toast popularity was classified as not popular.
We found that native-toast demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.