New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nuxt/content

Package Overview
Dependencies
Maintainers
7
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxt/content - npm Package Compare versions

Comparing version

to
2.0.0

dist/module.cjs

144

package.json
{
"name": "@nuxt/content",
"version": "1.15.1",
"version": "2.0.0",
"description": "Write your content inside your Nuxt app",
"keywords": [
"nuxt",
"content",
"module"
],
"repository": "nuxt/content",
"license": "MIT",
"types": "types/index.d.ts",
"type": "module",
"exports": {
".": {
"import": "./dist/module.mjs",
"require": "./dist/module.cjs"
}
},
"main": "./dist/module.cjs",
"module": "./dist/module.mjs",
"types": "./dist/types.d.ts",
"files": [
"lib",
"parsers",
"templates",
"types"
"dist"
],
"main": "lib/",
"scripts": {
"build": "nuxt-module-build",
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
"dev:docs": "(cd docs && nuxi dev)",
"build:docs": "(cd docs && nuxi build)",
"example": "./scripts/example.sh",
"lint": "eslint --ext .js,.ts,.vue .",
"prepack": "yarn build",
"test:coverage": "vitest --coverage",
"test:types": "tsc --build tsconfig.json",
"test:unit": "nuxi prepare test/fixtures/basic && vitest run"
},
"dependencies": {
"@lokidb/full-text-search": "^2.1.0",
"@lokidb/loki": "^2.1.0",
"@nuxt/types": "^2.15.2",
"@types/js-yaml": "^4.0.0",
"@types/xml2js": "^0.4.8",
"change-case": "^4.1.2",
"chokidar": "^3.5.1",
"consola": "^2.15.3",
"@nuxt/kit": "^3.0.0-rc.3",
"csvtojson": "^2.0.10",
"defu": "^3.2.2",
"detab": "^2.0.4",
"escape-html": "^1.0.3",
"graceful-fs": "^4.2.6",
"gray-matter": "^4.0.2",
"hasha": "^5.2.2",
"hookable": "^4.4.1",
"html-tags": "^3.1.0",
"js-yaml": "4.0.0",
"json5": "^2.2.0",
"mdast-util-to-hast": "^10.2.0",
"mkdirp": "^1.0.4",
"node-req": "^2.1.2",
"node-res": "^5.0.1",
"p-queue": "6.6.2",
"prismjs": "^1.23.0",
"property-information": "^5.6.0",
"rehype-raw": "^5.0.0",
"rehype-sort-attribute-values": "^3.0.2",
"rehype-sort-attributes": "^3.0.2",
"remark-autolink-headings": "^6.0.1",
"remark-external-links": "^8.0.0",
"remark-footnotes": "^3.0.0",
"remark-gfm": "^1.0.0",
"remark-parse": "^9.0.0",
"remark-rehype": "^8.0.0",
"remark-slug": "^6.0.0",
"remark-squeeze-paragraphs": "^4.0.0",
"unified": "^9.2.1",
"unist-builder": "^2.0.3",
"ws": "^7.4.3",
"xml2js": "^0.4.23"
"defu": "^6.0.0",
"destr": "^1.1.1",
"detab": "^3.0.1",
"flat": "^5.0.2",
"html-tags": "^3.2.0",
"js-yaml": "^4.1.0",
"json5": "^2.2.1",
"listhen": "^0.2.11",
"mdast-util-from-markdown": "^1.2.0",
"mdast-util-to-hast": "^12.1.1",
"mdast-util-to-markdown": "^1.3.0",
"mdurl": "^1.0.1",
"micromark": "^3.0.10",
"micromark-core-commonmark": "^1.0.6",
"micromark-factory-space": "^1.0.0",
"micromark-factory-whitespace": "^1.0.0",
"micromark-util-character": "^1.1.0",
"ohash": "^0.1.0",
"parse-entities": "^4.0.0",
"pathe": "^0.3.0",
"property-information": "^6.1.1",
"rehype-external-links": "^1.0.1",
"rehype-raw": "^6.1.1",
"rehype-slug": "^5.0.1",
"rehype-sort-attribute-values": "^4.0.0",
"rehype-sort-attributes": "^4.0.0",
"remark-emoji": "^3.0.2",
"remark-gfm": "^3.0.1",
"remark-parse": "^10.0.1",
"remark-rehype": "^10.1.0",
"remark-squeeze-paragraphs": "^5.0.1",
"scule": "^0.2.1",
"shiki-es": "^0.1.2",
"slugify": "^1.6.5",
"stringify-entities": "^4.0.2",
"ufo": "^0.8.4",
"unctx": "^1.1.4",
"unified": "^10.1.2",
"unist-builder": "^3.0.0",
"unist-util-position": "^4.0.3",
"unist-util-visit": "^4.1.0",
"unstorage": "^0.4.1",
"ws": "^8.6.0"
},
"publishConfig": {
"access": "public"
},
"gitHead": "a5433399be8872035b6062bde5632e9e0381d32d"
"devDependencies": {
"@nuxt/module-builder": "^0.1.7",
"@nuxt/schema": "^3.0.0-rc.3",
"@nuxt/test-utils": "npm:@nuxt/test-utils-edge@latest",
"@nuxthq/admin": "npm:@nuxthq/admin-edge@latest",
"@nuxtjs/eslint-config-typescript": "latest",
"@types/flat": "^5.0.2",
"@types/ws": "^8.5.3",
"c8": "^7.11.3",
"eslint": "^8.16.0",
"globby": "^13.1.1",
"husky": "^8.0.1",
"jiti": "^1.13.0",
"lint-staged": "^12.4.1",
"nuxt": "^3.0.0-rc.3",
"vitest": "^0.12.9"
}
}

@@ -1,58 +0,37 @@

# @nuxt/content
[![nuxt-content](/docs/public/cover.jpg "@nuxt/content cover")](https://content.nuxtjs.org)
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
[![Codecov][codecov-src]][codecov-href]
[![License][license-src]][license-href]
[![lerna][lerna-src]][lerna-href]
# Nuxt Content
> @nuxt/content lets you write in a content/ directory, acting as Git-based Headless CMS
Nuxt Content reads the `content/` directory in your project, parses `.md`, `.yml`, `.csv` or `.json` files and creates a powerful data layer for your application. Bonus, use Vue components in Markdown with the [MDC syntax](/guide/writing/mdc).
- [🎲  Play on CodeSandbox](https://codesandbox.io/s/nuxtcontent-demo-l164h?)
- [🎬  Demonstration videos](https://content.nuxtjs.org/#videos)
- [✨  Release Notes](https://github.com/nuxt/content/releases)
- [📖  Read the documentation](https://content.nuxtjs.org)
- [👾  Playground](https://stackblitz.com/github/nuxt/content/tree/main/examples/essentials/hello-world?file=app.vue)
- [✨  Intro video](https://www.youtube.com/watch?v=o9e12WbKrd8)
## Features
- Blazing fast hot reload in development
- Vue components in Markdown
- Full-text search
- Support static site generation with `nuxt generate`
- Powerful QueryBuilder API (MongoDB like)
- Syntax highlighting to code blocks in markdown files using PrismJS.
- [**Nuxt 3**](https://v3.nuxtjs.org) support
- A Markdown syntax made for Vue components ([**MDC**](https://content.nuxtjs.org/guide/writing/mdc))
- Navigation generation
- Code highlighting with [**Shiki**](https://shiki.matsu.io)
- Blazing fast hot module replacement in development
- Powerful query builder (MongoDB like)
- Table of contents generation
- Handles Markdown, CSV, YAML, JSON(5), XML
- Extend with hooks
- Also handles CSV, YAML and JSON(5)
- Extend with hooks and content plugins
- [...and more](https://content.nuxtjs.org)
[📖 Read the documentation](https://content.nuxtjs.org)
## Nuxt 2
## Development
Nuxt 2 is supported with Content v1, documentation is on https://content.nuxtjs.org/content-v1 and the code on the [v1](https://github.com/nuxt/content/tree/v1) branch.
1. Clone this repository
2. Install dependencies using `yarn install` or `npm install`
3. Start development server using `yarn dev` or `npm run dev`
## 💻 Development
- Clone repository
- Install dependencies using `yarn install`
- Prepare using `yarn dev:prepare`
- Try playground using `yarn dev`
## License
[MIT License](../../LICENSE)
<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/@nuxt/content/latest.svg
[npm-version-href]: https://npmjs.com/package/@nuxt/content
[npm-downloads-src]: https://img.shields.io/npm/dt/@nuxt/content.svg
[npm-downloads-href]: https://npmjs.com/package/@nuxt/content
[github-actions-ci-src]: https://github.com/nuxt/content/workflows/ci/badge.svg
[github-actions-ci-href]: https://github.com/nuxt/content/actions?query=workflow%3Aci
[codecov-src]: https://img.shields.io/codecov/c/github/nuxt/content.svg
[codecov-href]: https://codecov.io/gh/nuxt/content
[license-src]: https://img.shields.io/npm/l/@nuxt/content.svg
[license-href]: https://npmjs.com/package/@nuxt/content
[lerna-src]: https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg
[lerna-href]: https://lerna.js.org/
[MIT](./LICENSE) - Made with 💚

Sorry, the diff of this file is not supported yet