Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@master/css-compiler
Advanced tools
npm install @master/css-compiler
const compiler = new MasterCSSCompiler()
{
// specify virtual CSS module id (e.g. virtual:master.css)
module: 'master.css',
// specify config file path or set `Config`
config: 'master.css.{ts,js,mjs,cjs}',
// forcibly specify sources for scanning, not excluded by `options.exclude`
sources: [],
// specify sources for scanning
include: ['**/*.{html,js,jsx,ts,tsx,svelte,astro,vue,md,mdx,pug,php}'],
// specify sources to exclude
exclude: [
'**/node_modules/**',
'**/*.d.ts',
'**/*.test.*',
'node_modules',
'master.css.{js,ts,mjs,cjs}',
'dist',
'out',
'README.md'
],
// whitelist of class names for unpredictable dynamics
fixedClasses: [],
// blacklist of class names to exclude accidentally captured
ignoredClasses: [], // or RegExp[]
cwd: process.cwd()
}
// Initialize the compiler and MasterCSS
init(): this
// Scan sources, extract class names, and generate CSS rules
compile()
// Extract potential class names from the given file content
extract(name: string, content: string): string[]
// `extract(name, content)`, insert extractions, and generate CSS rules
insert(name: string, content: string): boolean
// Read file source paths by `options.include` and `options.exclude`
get sources(): string[]
// Check source file path by `options.include` and `options.exclude`
checkSourcePath(name: string): boolean
// Read user config file by `options.config`
readConfig(): Config
// Get user config path
get configPath(): string
// Get resolved user config path
get resolvedConfigPath(): string
export default class MasterCSSCompiler {
css: MasterCSS
extractions = new Set<string>()
...
}
FAQs
The ahead-of-time compiler of Master CSS
The npm package @master/css-compiler receives a total of 40 weekly downloads. As such, @master/css-compiler popularity was classified as not popular.
We found that @master/css-compiler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.