--- title: Node.js slug: 'node' --- To minimally use SVGO in Node.js, ensure you've installed the dependency by following the instructions in [Getting Started](../01-index.mdx#installation), then import the `optimize` function. Here's a minimal example: ```js import { optimize } from 'svgo'; const svg = ` •ᴗ• `; const { data } = optimize(svg); console.log(data); // •ᴗ• ```