-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
837 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
[*.{js,json,yml}] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-3.2.0.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,4 @@ | ||
{ | ||
"name": "rasterize", | ||
"version": "0.2.0", | ||
"description": "program to emojify SVGs", | ||
"repository": "https://github.com/dysbulic/rasterize.git", | ||
"author": "dysbulic <[email protected]>", | ||
"license": "CC0-1.0", | ||
"private": false, | ||
"main": "rasterizer", | ||
"dependencies": { | ||
"chrome-remote-interface": "^0.29.0", | ||
"jsdom": "^19.0.0", | ||
"paper": "^0.12.15", | ||
"pluralize": "^8.0.0", | ||
"svg-pathdata": "^6.0.3", | ||
"yargs": "^16.2.0" | ||
} | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env node | ||
|
||
const fs = require('fs') | ||
const path = require('path') | ||
const yargs = require('yargs/yargs') | ||
const pluralize = require('pluralize') | ||
|
||
const main = async () => { | ||
const args = ( | ||
yargs(process.argv.slice(2)) | ||
.command( | ||
'* [urls..]', | ||
( | ||
"This program is for downloading and saving the art from\n" | ||
+ " Vecteezy.com using Puppeteer.\n\n" | ||
+ "It requires Chrome be running." | ||
), | ||
) | ||
.demandOption('urls') | ||
.alias('h', 'help') | ||
.help() | ||
.showHelpOnFail(true, 'HELP!') | ||
) | ||
const argv = await args.argv | ||
} | ||
|
||
main() | ||
.then(() => process.exit(0)) | ||
.catch((reason) => console.error(reason.message ?? reason)) |
Oops, something went wrong.