Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@master/css-compiler
Advanced tools
npm install @master/css-compiler
const compiler = await 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.*',
// 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'
],
classes: {
// whitelist of class names for unpredictable dynamics
fixed: [],
// blacklist of class names to exclude accidentally captured
ignored: [] // or RegExp[]
},
cwd: process.cwd()
}
// Reload the compiler and MasterCSS
refresh(): 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 54 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 found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.