-
Notifications
You must be signed in to change notification settings - Fork 5
Snips Files #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Snips Files #76
Conversation
flossypurse
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might need a detailed explanation of how this works. Looks like a lot of code has been moved around and it is hard to tell what logic is being introduced and/or changed.
Curious why SNIPFILE and SNIPFILEEND are needed as new target placeholders?
What would an example file origin config look like?
| // Custom promisified version of eachLine | ||
| const eachLineAsync = (filePath, cb) => { | ||
| return new Promise((resolve, reject) => { | ||
| eachLine(filePath, cb, (err) => { | ||
| if (err) reject(err); | ||
| else resolve(); | ||
| }); | ||
| }); | ||
| }; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed?
Snipfile