Skip to content

Commit

Permalink
feature: Implement function to scrap file raw script
Browse files Browse the repository at this point in the history
  • Loading branch information
youthfulhps committed Jul 27, 2023
1 parent 1a79b32 commit e804b26
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/helpers/scraper/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import * as fs from 'fs/promises';

export async function scrapRawScript(target: string) {
const response = await fs.readFile(target, 'utf-8');
return response;
}

0 comments on commit e804b26

Please sign in to comment.