
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
mrp-url-generator
Advanced tools
Isomorphic library to generate URLs used across MR PORTER sites
An isomorphic JavaScript library to generate URLs used across the MR PORTER sites, following our agreed formatting conventions.
npm i mrp-url-generator --save
import { buildProductDetailsUrl } from 'mrp-url-generator';
/* alternatively, one can import the entire library with:
* import urlGen from 'mrp-url-generator'; */
var buildProductDetailsUrl = require('mrp-url-generator').buildProductDetailsUrl;
This is confirmed to work with Browserify and Webpack.
If, unfortunately, script
tag includes are the only option, one must build the distributable manually with a tool such as Browserify:
browserify dist/index.js --outfile mrp-url-generator.js
All methods return String
s representing relative URLs
buildProductDetailsUrl(brandUrlKey, productName, productId, locale)
Returns a product details page link e.g:
//returns '/en-gb/mens/mario_super_designer/my-3456-woouuuuderful-trou-ers-are-great/12345'
buildProductDetailsUrl('Mario_Super_Designer', 'My 3456 Ẅöőuúüűderful Trou$ers! Are great', 12345, 'en-gb');
npm i -g babel
npm i
String.prototype
npm run dist
- compiles the distributable to ECMAScript 5npm test
- runs unit testsFAQs
Isomorphic library to generate URLs used across MR PORTER sites
The npm package mrp-url-generator receives a total of 7 weekly downloads. As such, mrp-url-generator popularity was classified as not popular.
We found that mrp-url-generator demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.