Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
amznjp-url-normalize
Advanced tools
Amazon.co.jp の URL を正規化します。クロスドメイン XHR には対応していないので、ブラウザでは動作しません。
var normalize = require('amznjp-url-normalize');
var url = 'http://www.amazon.co.jp/gp/product/B00Q5QBZCA/ref=s9_qpp_gw_p15_d7_i4?'
+ 'pf_rd_m=AN1VRQENFRJN5&pf_rd_s=center-3&'
+ 'pf_rd_r=05NNNANYG90DWEXJPA9W&pf_rd_t=101&'
+ 'pf_rd_p=155416509&pf_rd_i=489986';
normalize(url, function (err, params) {
if (err) {
console.error(err);
return;
}
console.log(params.asin); // => 'B00Q5QBZCA'
console.log(params.url); // => 'http://www.amazon.co.jp/dp/B00Q5QBZCA'
});
normalize("Amazon.co.jp の商品ページの URL", function (err, params) {
// params.asin
// params.url
});
var options = {
prefix: 'http://www.amazon.co.jp/dp/', // ASIN の前につける文字列
suffix: '' // ASIN の後につける文字列
};
normalize("Amazon.co.jp の商品ページの URL", options, function (err, params) {
// params.asin
// params.url
});
MIT License
Copyright (c) 2015 Pine Mizune
FAQs
Normalize URL of Amazon.co.jp
The npm package amznjp-url-normalize receives a total of 1 weekly downloads. As such, amznjp-url-normalize popularity was classified as not popular.
We found that amznjp-url-normalize 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.