Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 9de9f1e

Browse files
chore: update readme and module name
1 parent f5b6861 commit 9de9f1e

File tree

3 files changed

+40
-4
lines changed

3 files changed

+40
-4
lines changed

README.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,40 @@
1-
# Nuxt Module
1+
# @cssninja/nuxt-media-viewer
2+
3+
A media viewer for public assets in Nuxt.js
4+
5+
## Features
6+
7+
- Preview assets with their meta data
8+
- Generate snippets for responsive/retina images
9+
- Generate and customize inline SVG from your assets
10+
11+
12+
## Installation
13+
14+
1. Add `@cssninja/nuxt-media-viewer` dependency to your project
15+
```bash
16+
# Using pnpm
17+
pnpm add -D @cssninja/nuxt-media-viewer
18+
19+
# Using yarn
20+
pnpm add -D @cssninja/nuxt-media-viewer
21+
22+
# Using npm
23+
npm install --save-dev @cssninja/nuxt-media-viewer
24+
```
25+
26+
2. Add `@cssninja/nuxt-media-viewer` to the `modules` section of `nuxt.config.js`
27+
28+
```ts
29+
export default defineNuxtConfig({
30+
modules: [
31+
'@cssninja/nuxt-media-viewer'
32+
]
33+
})
34+
```
35+
36+
3. Go to the media viewer page and start previewing your assets at [http://localhost:3000/_media-viewer](http://localhost:3000/_media-viewer)
37+
238

339
## Development
440

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "my-module",
3-
"version": "1.0.0",
2+
"name": "@cssninja/nuxt-media-viewer",
3+
"version": "0.0.1",
44
"license": "MIT",
55
"type": "module",
66
"exports": {

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import consola from 'consola'
66

77
export default defineNuxtModule({
88
meta: {
9-
name: 'media-viewer'
9+
name: '@cssninja/nuxt-media-viewer'
1010
},
1111
defaults: {
1212
installIpxMiddleware: true

0 commit comments

Comments
 (0)