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.
nav-keys
Advanced tools
Readme
Please, if you can give me a ⭐ on GitHub. Also make me know of any bug, problem or something you need.
Full control of back and forward keys on browser
It can:
back
, forward
and hashchange
eventsimport NavKeysController from 'nav-keys'
const options = {
allowHashchange: true // by default it won't prevent hashchange and will emit an event
listenHashchange: true // by default it will emit hashchange events
}
const controller = new NavKeysController(window.history, options) // both params are optional
controller.url = 'home'
controller.listen(e => {
console.log(e) // Won´t see this
})
controller.listen(e => {
e.stopPropagation()
})
controller.listen(e => {
console.log(e) // Will see this
console.log(e.action)
console.log(e.location)
if (e.action === 'back') {
controller.url = 'previos page'
controller.enableForwardButton()
} else if (e.action === 'forward') {
controller.url = 'next page'
controller.disableForwardButton()
} else if (e.action === 'hashchange') {
controller.url = 'hash page'
}
})
// Listeners behaviour is like a stack
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
<script src="nav-keys.js"></script>
<script>
var controller = new NavKeysController(window.history)
</script>
FAQs
Control of browser back and forward navigation keys
The npm package nav-keys receives a total of 1 weekly downloads. As such, nav-keys popularity was classified as not popular.
We found that nav-keys demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.