mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
21 lines
421 B
Vue
21 lines
421 B
Vue
<script setup lang="ts">
|
|
import { Buffer } from 'node:buffer'
|
|
import process from 'node:process'
|
|
|
|
const base64 = atob(Buffer.from('Nuxt is Awesome!', 'utf8').toString('base64'))
|
|
const cwd = typeof process.cwd === 'function' && '[available]'
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<ClientOnly>
|
|
<div>
|
|
{{ base64 }}
|
|
</div>
|
|
<div>
|
|
CWD: {{ cwd }}
|
|
</div>
|
|
</ClientOnly>
|
|
</div>
|
|
</template>
|