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

ligie

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ligie - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

index.d.ts
export function generateMermaid(
graph: string,
graph: Record<string, string[]>,
outDir?: string,

@@ -4,0 +4,0 @@ options?: { orientation: string }

@@ -18,3 +18,3 @@ import * as fs from "node:fs/promises";

safeGeneration(async () => {
const location = path.join(outDir, `mermaid-${Date.now()}.mmd`);
const location = path.join(outDir, `graph-${Date.now()}.mmd`);
await fs.writeFile(location, mermaid);

@@ -27,3 +27,3 @@ });

safeGeneration(async () => {
const location = path.join(outDir, `mermaid-${Date.now()}.md`);
const location = path.join(outDir, `graph-${Date.now()}.md`);
await fs.writeFile(location, "```mermaid\n".concat(mermaid, "\n```"));

@@ -36,6 +36,6 @@ });

safeGeneration(async () => {
const location = path.join(os.tmpdir(), `mermaid-${Date.now()}.mmd`);
const location = path.join(os.tmpdir(), `graph-${Date.now()}.mmd`);
await fs.writeFile(location, mermaid);
await run(location, path.join(outDir, `mermaid-${Date.now()}.svg`));
await run(location, path.join(outDir, `graph-${Date.now()}.svg`));
});

@@ -47,6 +47,6 @@ }

safeGeneration(async () => {
const location = path.join(os.tmpdir(), `mermaid-${Date.now()}.mmd`);
const location = path.join(os.tmpdir(), `graph-${Date.now()}.mmd`);
await fs.writeFile(location, mermaid);
await run(location, path.join(outDir, `mermaid-${Date.now()}.png`));
await run(location, path.join(outDir, `graph-${Date.now()}.png`));
});

@@ -53,0 +53,0 @@ }

{
"name": "ligie",
"version": "0.0.3",
"version": "0.0.4",
"description": "Ligie generates mermaid-js diagrams from Directed Graphs",

@@ -5,0 +5,0 @@ "type": "module",

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