Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@node-novel/md-loader

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@node-novel/md-loader

支援 Front Matter 的 node-novel-info / mdconf

  • 1.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
54
increased by63.64%
Maintainers
1
Weekly downloads
 
Created
Source

@node-novel/md-loader

支援 Front Matter 的 node-novel-info / mdconf

install

npm install @node-novel/md-loader node-novel-info

請注意必須要手動額外安裝 node-novel-info 這是為了防止當多個 node-novel-info 同時存在時的除錯問題

請注意必須要手動額外安裝 node-novel-info 這是為了防止當多個 node-novel-info 同時存在時的除錯問題

demo

see api in API

demo.ts

import { parse } from '@node-novel/md-loader';

let k = parse(`
---
title: Home
---
# novel

- title: 破滅の魔導王とゴーレムの蛮妃
`, {
	parseOptions: {
		//lowCheckLevel: true,
		throw: false,
	},
});

let r = k.stringify({
	data: {
		//...k.data,
		//kkk: 777,
	},
	//content: k.content,
	mdconf: {
		...k.mdconf,
		aaa: {
			bbb: 777,
		},
	},
});

let r2 = k.stringify(k);

console.dir(k, {
	colors: true,
});

console.log(r);

console.log('---------------------------');

console.log(r2);

Keywords

FAQs

Package last updated on 04 Jun 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc