- Complete React app with 7 developer tools - JSON Tool with visual structured editor - Serialize Tool with visual structured editor - URL, Base64, CSV/JSON, Beautifier, Diff tools - Responsive navigation with dropdown menu - Dark/light mode toggle - Mobile-responsive design with sticky header - All tools working with copy/paste functionality
23 lines
617 B
JavaScript
23 lines
617 B
JavaScript
module.exports = function compressFontWeight(node) {
|
|
var value = node.children.head.data;
|
|
|
|
if (value.type === 'Identifier') {
|
|
switch (value.name) {
|
|
case 'normal':
|
|
node.children.head.data = {
|
|
type: 'Number',
|
|
loc: value.loc,
|
|
value: '400'
|
|
};
|
|
break;
|
|
case 'bold':
|
|
node.children.head.data = {
|
|
type: 'Number',
|
|
loc: value.loc,
|
|
value: '700'
|
|
};
|
|
break;
|
|
}
|
|
}
|
|
};
|