2.0.1 • Published 6 years ago
decrypt-dlc v2.0.1
decrypt-dlc
Decrypt DLC files with http://dcrypt.it/. Thanks to these awesome guys for the permission to write this module :)
Table of Contents
Installation
$ yarn add decrypt-dlcUsage
const decrypt = require('decrypt-dlc');
const fs = require('fs');
(async () => {
try {
await decrypt.upload('path/to/DLC/file');
await decrypt.container('http://example.com/file.dlc');
await decrypt.paste(fs.readFileSync('path/to/DLC/file'));
} catch (err) {
// Handle errors
}
});API
decrypt.upload(filepath)
filepathString - Path to DLC file
decrypt.container(url)
urlString - URL to a DLC-file
decrypt.paste(fileContent)
fileContentString - File content of a DLC file.
All these methods returns an array of urls on success or throws an Error if it fails.
Development
$ yarn testRelease Notes
2.0.1- Update dependencies - Close security vulnerabilities2.0.0- Promisified - Change API, see Usage or API1.0.00.0.2- Add testing functionality0.0.1- Initial Release