decrypt-dlc

2.0.1 • Public • Published

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
    • Promisified
    • Change API, see Usage or API
  • 1.0.0
    • Change API, see Usage or API
    • Add more endpoints
    • Add ava as test engine
  • 0.0.2 - Add testing functionality
  • 0.0.1 - Initial Release

Related

decrypt-dlc-cli

Package Sidebar

Install

npm i decrypt-dlc

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

11.5 kB

Total Files

7

Last publish

Collaborators

  • sydev