decrypt-dlc
v2.0.1
Published
Decrypt DLC files with http://dcrypt.it/
Downloads
21
Maintainers
Readme
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-dlc
Usage
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)
filepath
String - Path to DLC file
decrypt.container(url)
url
String - URL to a DLC-file
decrypt.paste(fileContent)
fileContent
String - 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 test
Release Notes
2.0.1
- Update dependencies
- Close security vulnerabilities
2.0.0
1.0.0
0.0.2
- Add testing functionality0.0.1
- Initial Release