We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/push-based/angular-toolkit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
stylesheet.parse.ts•487 B
import postcss from 'postcss';
import safeParser from 'postcss-safe-parser';
/**
* Parse a stylesheet content and return the AST.
* PostCss is indexed with 1, so we don't need to adjust the line number to be linkable.
*
* @param content
* @param filePath
*/
export function parseStylesheet(content: string, filePath: string) {
return postcss().process(content, {
parser: safeParser,
from: filePath,
map: {
inline: false, // preserve line number
},
});
}