npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

svg-bulk-outliner

v1.0.3

Published

SVG bulk text-to-outlines converter via Inkscape

Downloads

13

Readme

SVG Bulk Outliner

Script to quickly outline text for all SVGs in a folder.

Pre-requisites

This script uses Inkscape to process the SVG files, so it must be installed first. Download Inkscape at:

https://inkscape.org/pt-br/release/inkscape-1.0/

Installation and usage

Install this package as a global module:

npm install -g svg-bulk-outliner

Once you have completed installation, simply run the command below from the folder containing SVG files you wish to convert:

svg-bulk-outline

The script will recursively parse through the folder and convert text to outlines on any SVG files it finds. By default the files will be overwritten with the outlined version. See Parameters for additional configuration options if you want to save a copy instead of overwriting.

Parameters

Optional parameters to customize the conversion. All example output assumes the following input files:

input-file1.svg
input-file2.svg
input-file3.svg

--cwd

Specify the working directory to recurse through. By default, svg-bulk-outline will process through the current working directory.

svg-bulk-outline --cwd="~/Desktop"

--dry-run

Don't actually modify the files, but show an output of what the results should look like on the set. Will not actually run inkscape against the files, but its useful to check that all the files you want processed are renamed properly and included in your run.

svg-bulk-outline --dry-run

--file-prefix

Specify a file name prefix for output files. Will rename input files unless --save-copy is also specified.

svg-bulk-outline --file-prefix="foo-"

Expected output:

foo-input-file1.svg
foo-input-file2.svg
foo-input-file3.svg

Run with --save-copy

svg-bulk-outline --file-prefix="foo-" --save-copy

Expected output:

input-file1.svg
input-file2.svg
input-file3.svg
foo-input-file1.svg
foo-input-file2.svg
foo-input-file3.svg

--file-suffix

Specify a file name suffix for output files. Will rename output files unless --save-copy is also specified.

svg-bulk-outline --file-suffix="-outlined"

Expected output:

input-file1-outlined.svg
input-file2-outlined.svg
input-file3-outlined.svg

Run with --save-copy

svg-bulk-outline --file-suffix="-outlined" --save-copy

Expected output:

input-file1.svg
input-file2.svg
input-file3.svg
input-file1-outlined.svg
input-file2-outlined.svg
input-file3-outlined.svg

--pattern

Specify a custom file pattern to search for. Accepts any pattern compatible with Glob. If not specified, the default file pattern is **/*.svg.

svg-bulk-outline --pattern="static/**/*.svg"

--save-copy

Save a copy of the SVG instead of overwriting the input files. If you do not specify --file-prefix or --file-suffix the output file names will automatically be suffixed with -copy.

svg-bulk-outline --save-copy

Expected output:

input-file1-copy.svg
input-file2-copy.svg
input-file3-copy.svg