Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@types/css-modules
Advanced tools
npm install --save @types/css-modules
This package contains type definitions for css-modules (https://github.com/css-modules/css-modules).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-modules.
// Type definitions for css-modules 1.0
// Project: https://github.com/css-modules/css-modules
// Definitions by: NeekSandhu <https://github.com/NeekSandhu>
// Remco Haszing <https://github.com/remcohaszing>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
interface CSSModule {
/**
* Returns the specific selector from imported stylesheet as string.
*/
[key: string]: string;
}
declare module "*.css" {
/**
* A CSS module.
*/
const styles: CSSModule;
export default styles;
}
declare module "*.scss" {
/**
* An SCSS based CSS module.
*
* https://sass-lang.com
*/
const styles: CSSModule;
export default styles;
}
declare module "*.sass" {
/**
* A Sass based CSS module.
*
* https://sass-lang.com
*/
const styles: CSSModule;
export default styles;
}
declare module "*.less" {
/**
* A Less based CSS module.
*
* http://lesscss.org
*/
const styles: CSSModule;
export default styles;
}
declare module "*.styl" {
/**
* A Stylus based CSS module.
*
* https://stylus-lang.com
*/
const styles: CSSModule;
export default styles;
}
These definitions were written by NeekSandhu, and Remco Haszing.
FAQs
TypeScript definitions for css-modules
The npm package @types/css-modules receives a total of 41,668 weekly downloads. As such, @types/css-modules popularity was classified as popular.
We found that @types/css-modules demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.