Sometimes, you have to interface with an API that doesn't respond fast enough. Moreover, you might perform the same request multiple times.
The solution?
Return the same promise for the same exact requests until they resolve. This is more useful when you interface with stateless APIs, where you just consume data.
https://github.com/chrispanag/memoized-node-fetch
#node #nodejs #npm #npmpackage #package #javascript #typescript #opensource
#node #nodejs #npm #npmPackage #package #javascript #typescript #opensource
Weekends to #developers is time for hobby projects.
Worked half of my Sunday and fixed the issues.
v0.0.5 is published finally.
Changelogs:
- Fixed a major issue with exceptions.
- Better error handling with appropriate messages.
- New parameter factor introduced which helps in modifying the cropped area of face.
- More unit test cases added.
- Code Coverage enhanced to 99%.
#npm #npmPackage #nodejs #javascript #devops #cicd #automation #foss #opensource #opensourceContributions
#nodejs #cicd #automation #foss #opensource #opensourceContributions #developers #javascript #devops #npm #npmPackage
Just released v0.0.4!
Changelogs:
- Function API has been modified to reduce complexity.
- Fixes in loading pre-trained classifier files.
- Added .npmignore file.
- Reduced package size to less than a MB.
- Added unit test cases for the new developments.
- Moved to Codecov from Sonarqube.
- Achieved 95% code coverage.
- README updates with images added.
#npm #npmPackage #nodejs #javascript #devops #cicd #automation #foss #opensource #opensourceContributions
#devops #cicd #automation #foss #opensource #opensourceContributions #npm #npmPackage #nodejs #javascript
Released v0.0.3!
Changelogs:
- Added support for multi-face detection.
- Redirecting to opencv4js npm package to obtain the updated opencv.js file easily.
- Integrated Sonarqube for code scanning and detect bugs/issues/smells in code.
- Integrated Jest for unit testing.
- Code coverage- 94.4%.
- README updates to provide more clarity.
v1.0.0 will be arriving by next week.
#npm #npmPackage #nodejs #javascript #devops #cicd #automation #foss #opensource #opensourceContributions
#devops #cicd #automation #opensourceContributions #npm #npmPackage #nodejs #javascript #foss #opensource
v0.0.2 is out now!
Changelogs:
- Minor code tweaks.
- Github Actions workflow added to automate publishing to npm registry.
- Documentation updated with relevant details on how to use the package.
#npm #npmPackage #javascript #GithubActions #devops #cicd #automation #foss #opensource #opensourceContributions
#npm #npmPackage #javascript #githubactions #foss #devops #cicd #automation #opensource #opensourceContributions
Was helping out a friend with some #NodeJs code, ended up creating a #npm package.
It uses #OpenCv to detect faces from an image and crops the faces out.
One of the use cases of this package can be creating thumbnails/previews showing just the faces from the original picture.
P.S. - The pre-release version is out now. More enhancements coming soon.
https://www.npmjs.com/package/opencv-facecrop
#npmPackage #javascript
#foss #opensource #opensourceContributions
#nodejs #npm #npmPackage #javascript #opensource #opensourceContributions #opencv #foss