
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
@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
The npm package @mitre/nuxt-smartscript receives a total of 0 weekly downloads. As such, @mitre/nuxt-smartscript popularity was classified as not popular.
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
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.