Skip to content

Commit

Permalink
feature: Apply scrapRawScript to main execution function
Browse files Browse the repository at this point in the history
  • Loading branch information
youthfulhps committed Jul 27, 2023
1 parent e804b26 commit b07ae94
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
export * from '~/example';
import { scrapRawScript } from '~/helpers/scraper';

export default (async () => {
const args = process.argv.slice(2);

if (args[0] === '--target') {
const rawScript = await scrapRawScript(args[1]);
console.log(rawScript);
}
})();

0 comments on commit b07ae94

Please sign in to comment.