1.5.1 • Published 3 years ago
dir2pdf v1.5.1
dir2pdf
A simple module to turn a folder images into a Pdf file, following the order of the images.
How to use?
Install :
npm i dir2pdf
yarn add dir2pdf
Declaration:
const dir2pdf = require('dir2pdf')
dir2pdf('images/', 'file.pdf')
Sorts files in the directory naturally, so it will follow a numerical order, not like a string.
{ "01.jpg", "02.jpg", "010.jpg", ... }