Metacrawler 2
Nueva versión de Metacrawler, borra metadatos de cualquier formato de archivo, incluso creando una copia del mismo, ahora escrito en Javascript, usando Electron.
Aquí está Metacrawler 2

Cómo ejecutar
Descarga o clona el proyecto.
Para empezar, ejecuta el comando.
npm install
luego
npm run start
Ejemplo de código (Función Eliminar Metadatos)
#JAVASCRIPT1document.getElementById('fileInput').addEventListener('change', (event) => { 2 filePath = event.target.files[0].path; 3 removeMetadata(filePath); 4}); 5 6function removeMetadata(filePath) { 7 const originalFilePath = filePath + '_original'; 8 9 exiftool 10 .write(filePath, { all: '' }) 11 .then(() => { 12 Swal.fire({ 13 position: "top-end", 14 icon: "success", 15 title: "¡Metadatos eliminados!", 16 showConfirmButton: false, 17 timer: 1500 18 }); 19 ipcRenderer.send('download-file', filePath); 20 21 fs.unlink(originalFilePath, err => { 22 if (err) { 23 console.error(err); 24 } 25 }); 26 }) 27 .catch(err => console.error(err)); 28} 29 30document.getElementById('downloadButton').addEventListener('click', () => { 31 ipcRenderer.send('download-file', filePath); 32}); 33
Descarga o clona el proyecto en Github. Descargar desde Github
Licencia
MIT
- 💜 Acceso al --> Blog