vue-icon-packs
Version:
Vue SVG icon components.
29 lines (24 loc) • 783 B
JavaScript
// import list from '../packs.manifest';
const list = require('../packs.manifest');
// for list at top of readme
let names = list.map((obj) => `\`${obj.name}\``);
console.log(names.join(', '));
// for keywords in package.json
for (const {name} of list ) {
console.log(`"${name}",`)
}
// for table in readme
console.log(`| Name | Site | License |`);
console.log(`| --- | --- | --- |`);
for (const pack of list) {
console.log(
`| ${pack.name} | [site](${pack.site}) | [license](${pack.license}) |`
);
}
// let collection = document.getElementsByTagName('svg');
// let array = Array.prototype.slice.call(collection);
// for (const el of array) {
// let path = el.children[0];
// let width = window.getComputedStyle(path)['stroke-width'];
// console.log(width);
// }