
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@orange-games/gdpr
Advanced tools
A simple gdprWall feature to cover basic GDPR things (mainly cookies). This wall also has a build in GEOlocation tracker, so it will only show the gdprwall for EU visitors and show a regular cookiewall for non EU visitors.
Lets start by installing the package, like most of the other packages we will make use of NPM
npm i @orange-games/gdpr --save-dev
Now lets call get the tool in our project.
import Gdpr from '@orange-games/gdpr';
At last let's call the feature!
new Gdpr({
language: 'EN',
prefix: 'ogdpr_',
brandName: 'brandName',
brandImages: {
brandLogo: 'url to logo'
},
companyPolicy: 'http://orangegames.com/cookie-policy/',
companyCookie: 'http://orangegames.com/cookie-policy/',
pageInfo: {
page: 'pageName',
},
textDirectory: 'path-to-texts',
cookieWallItems: {
title: 'ccTitle',
message: 'ccMessage',
dismiss: 'ccDissmiss',
learnMore: 'ccLearnmore',
link: 'link',
mask: false,
theme: '//cookies.orangegames.com/assets/css/spele-bottom.css',
callback: function () {
//...
}
},
wallAccepted: function(){
//...
},
ogdprAdvertisement: function(state) {
//...
},
ogdprTracking: function(state) {
//...
},
ogdprThirdParty: function(state) {
//...
}
});
note: You can leave out any property that you wont use
The styles are not included in this tool.
STYLES ARE REQUIRED FOR THIS TOOL TO WORK
Here are the style elements used. SASS format: https://hastebin.com/ifixudewin.php
CSS format: https://hastebin.com/ubiduqorit.css
And done, it's that simple!
FAQs
A gdpr consent wall to cover basics for ORCA portals
We found that @orange-games/gdpr 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.