Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace colorette with nanocolors #1586

Merged
merged 1 commit into from Sep 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/svgo
@@ -1,6 +1,6 @@
#!/usr/bin/env node

const { red } = require('colorette');
const { red } = require('nanocolors');
const { program } = require('commander');
const makeProgram = require('../lib/svgo/coa');
makeProgram(program);
Expand Down
3 changes: 2 additions & 1 deletion lib/svgo/coa.js
Expand Up @@ -2,11 +2,12 @@

const FS = require('fs');
const PATH = require('path');
const { green, red } = require('colorette');
const { green, red } = require('nanocolors');
const { loadConfig, optimize } = require('../svgo-node.js');
const pluginsMap = require('../../plugins/plugins.js');
const PKG = require('../../package.json');
const { encodeSVGDatauri, decodeSVGDatauri } = require('./tools.js');

const regSVGFile = /\.svg$/i;

/**
Expand Down