Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@bem-transform/ts-computed-name
Advanced tools
Compute name of block and elem for BEM components.
Compute name of block and elem for BEM components.
typescript >= 2.9.0
npm i -D @bem-transform/ts-computed-name
This transform correctly work with ts-loader and awesome-typescript-loader.
const { computeClassBemName } = require('@bem-transform/ts-computed-name')
Need add this transform into getCustomTransformers in before
section.
{
test: /\.tsx?$/,
use: [
{
loader: require.resolve('awesome-typescript-loader'),
options: {
getCustomTransformers: () => ({
before: [
computeClassBemName(options),
],
}),
},
},
},
Property | Type | Default | Description |
---|---|---|---|
availableClassParent | string[] | ['Block', 'Elem'] | Will add properties only to classes who have the parents from list. |
availibleBemName | boolean | true | Will add the properties of block and elem based on the location in the fs. |
availibleDisplayName | boolean | true | Will add the static property of displayName based on the location in the fs. (Recommended add only in development mode for debugging) |
naming | string | 'origin' | naming convention that uses at the project, should be origin or react . |
overrideExistingProperties | boolean | true | Overrides existing properties block , elem and displayName . |
FAQs
Compute name of block and elem for BEM components.
The npm package @bem-transform/ts-computed-name receives a total of 1 weekly downloads. As such, @bem-transform/ts-computed-name popularity was classified as not popular.
We found that @bem-transform/ts-computed-name 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.