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.
geonorge-shared-partials
Advanced tools
Contains frontend for header used on Geonorge.no, including menu and search.
$ npm install geonorge-shared-partials
Create the following gulpfile.js in the root of your project
var nodeUrl = "./node_modules/geonorge-shared-partials/",
gulp = require("gulp"),
bundleTask = require(nodeUrl + "gulp-tasks/bundle")(gulp),
config = {
url: nodeUrl + "bundle.config.js",
distFolder: "./dist"
};
gulp.task("default", function(){bundleTask(config)});
Build js and css
$ gulp
Add stylesheets:
<link rel="stylesheet" href="/dist/vendor.css" />
<link rel="stylesheet" href="/dist/main.css" />
Use the html files in your root layout
// C# example
@Html.Raw(File.ReadAllText(Server.MapPath("~/dist/partials/Header.html")))
Include javascripts:
<script type="text/javascript" src="/dist/vendor.js" ></script>
<script type="text/javascript" src="/dist/main.js" ></script>
and include this js somewhere on your site
var applicationEnvironment = "local"; // "prod", "test", "dev" or "local"
var orderItems = $.cookie('orderitems'); // Update "shopping cart" icon
if (orderItems && orderItems > 0) {
$('.downloads__count').show();
$('.downloads__count').text(orderItems);
}
FAQs
Header for *.geonorge.no sites
The npm package geonorge-shared-partials receives a total of 1 weekly downloads. As such, geonorge-shared-partials popularity was classified as not popular.
We found that geonorge-shared-partials 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.