Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
apostrophe-browser-support
Advanced tools
Maintain the aesthetic of your website by restricting old browsers from seeing it.
#apostrophe-browser-support ##Table of Contents
##Intro
apostrophe-browser-support accepts a blacklist
and graylist
from the user. These lists will be used to either entirely restrict a user from seeing the website or warn them when they log-on that they are using a browser that is not recommended by the website owner.
In modules
of app.js
:
'apostrophe-browser-support': {
blacklist: [
{ name: 'IE', version: 7, ignoreBelow: true }
]
},
##How to use it
###Blacklisting
The blacklist is an array of browsers and browser versions that the website owner specifically does not want to see the website. All blacklisted browsers will be served a page telling them to update or install a new browser if they want to view the site.
In the example below, users with Internet Explorer 7 and older will be blocked from viewing the website:
'apostrophe-browser-support': {
blacklist: [
{ name: 'IE', version: 7}
]
}
If you only want to block Internet Explorer 7:
'apostrophe-browser-support': {
blacklist: [
{ name: 'IE', version: 7, ignoreOlder: true }
]
}
###Graylisting The graylist is an array browsers and browser version just like the blacklist. However, when a user logs on to the website with a browser and browser version in the graylist, the website will display a modal warning them that they are using an old browser and they should consider downloading a new one.
Graylists are also different than blacklists in that they do not display the modal for all browser versions older than the one specified by default.
In the example below, users with Internet Explorer 9 will see a modal warning them that their browser is old and they should update their browser:
'apostrophe-browser-support': {
graylist: [
{ name: 'IE', version: 9 }
]
}
If you want to show the modal for Internet Explorer 9 and every version older than IE 9:
'apostrophe-browser-support': {
graylist: [
{ name: 'IE', version: 9, includeOlder: true }
]
}
###Templates
FAQs
Maintain the aesthetic of your website by restricting old browsers from seeing it.
The npm package apostrophe-browser-support receives a total of 1 weekly downloads. As such, apostrophe-browser-support popularity was classified as not popular.
We found that apostrophe-browser-support demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.