
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@mitre/nuxt-smartscript
Advanced tools
Smart typography transformations for Nuxt - automatic superscript, subscript, and symbol formatting
Smart typography transformations for Nuxt - automatic superscript, subscript, and symbol formatting.
Install the module:
# npm
npm install @mitre/nuxt-smartscript
# pnpm
pnpm add @mitre/nuxt-smartscript
# yarn
yarn add @mitre/nuxt-smartscript
Add to your nuxt.config.ts:
export default defineNuxtConfig({
modules: ['@mitre/nuxt-smartscript']
})
That's it! The plugin will automatically process your content ✨
The module follows a modular architecture for maintainability:
src/runtime/
├── plugin.ts # Main plugin orchestrator
├── composables/
│ └── useSmartScript.ts # Vue composable for components
└── smartscript/
├── types.ts # TypeScript interfaces
├── config.ts # Configuration management
├── patterns.ts # Regex patterns & matchers
├── processor.ts # Text processing logic
├── dom.ts # DOM manipulation utilities
├── engine.ts # Core processing engine
├── errors.ts # Error handling & recovery
└── index.ts # Public API exports
Customize the behavior in nuxt.config.ts:
export default defineNuxtConfig({
modules: ['@mitre/nuxt-smartscript'],
smartscript: {
// Customize positioning for your font
positioning: {
trademark: {
body: '-0.5em',
headers: '-0.7em'
},
registered: {
body: '-0.25em',
headers: '-0.45em'
}
},
// Performance tuning
performance: {
debounce: 100,
batchSize: 50
}
}
})
Use in your components:
<script setup>
const { process, stats, isProcessing } = useSmartScript()
// Manually trigger processing
onMounted(() => {
process()
})
</script>
<template>
<div>
<p>Processed: {{ stats.total }} transformations</p>
</div>
</template>
We welcome contributions! Please see CONTRIBUTING.md for detailed guidelines.
This module is built using @nuxt/module-builder for proper TypeScript support and Nuxt ecosystem compatibility.
# Install dependencies
pnpm install
# Prepare development (generates types and stubs)
pnpm dev:prepare
# Run development playground
pnpm dev
# Run tests
pnpm test
# Build module
pnpm prepack
# Lint code
pnpm lint
For Contributors: This module uses a two-type system (ModuleOptions for users, SuperscriptConfig for runtime) to handle Nuxt's configuration transformation. See Contributing Guide and TypeScript Architecture for details.
Apache-2.0 - MITRE Corporation
FAQs
Smart typography transformations for Nuxt - automatic superscript, subscript, and symbol formatting
We found that @mitre/nuxt-smartscript demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.