Skip to content

Commit

Permalink
chore: add example #233
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 8, 2024
1 parent 1b1e51a commit a1e94fb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/example#233/simple.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import svgtofont from '../../lib/index.js';
import path from 'path';

svgtofont({
src: path.resolve(process.cwd(), "svg"), // svg path
dist: path.resolve(process.cwd(), "dist"), // output path
fontName: 'pst-font', // font name
css: true, // Create CSS files.
}).then(() => {
console.log('done!');
}).catch((error) => {
console.error('Error:', error);
});
5 changes: 5 additions & 0 deletions examples/example#233/svg/adobe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions examples/example#233/svg/git.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a1e94fb

Please sign in to comment.