You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
416 B
JavaScript
20 lines
416 B
JavaScript
"use strict";
|
|
|
|
const createDatasheet = require("../../shared/create-datasheet");
|
|
|
|
module.exports = function lcscNormalizeProduct() {
|
|
return async function (api) {
|
|
let { data } = api;
|
|
|
|
createDatasheet(api, {
|
|
priority: 0.4,
|
|
source: "lcsc",
|
|
manufacturer: data.manufacturer.en,
|
|
productID: data.number,
|
|
name: data.info.number,
|
|
description: data.description,
|
|
url: data.datasheet.pdf
|
|
});
|
|
};
|
|
};
|