1.0.2 • Published 3 years ago

@alimert/testcase01 v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Task

Move function moves a file to a folder.

DISCLAIMER: Solution 1 - 2

Solution 1: Performance based approach, runs extremely fast. Solution 2: Object oriented approach, I aimed for higher code quality. Slightly slower.

Performance

performance

Both solution 1 and solution 2 is fast, solution 1 is faster because it only does 2 passes or less. Instantiation costs may have effected the tests.

Tests

All passing with additional tests

https://github.com/alimertcakar/Testcase_1/blob/main/doc/tests.png

External use as package

npm i @alimert/testcase01

import FileManager from "@alimert/testcase01"