# decrypt-dlc

> Decrypt DLC files with http://dcrypt.it/

Latest version **2.0.1** (published 2019-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install decrypt-dlc
pnpm add decrypt-dlc
yarn add decrypt-dlc
bun add decrypt-dlc
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2019-11-07 |
| First published | 2016-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 11.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Dominik Winter |
| Maintainers | sydev |
| Keywords | dlc, DLC, decrypt, read, download, container, links, url |

## Links

- npm: https://www.npmjs.com/package/decrypt-dlc
- Repository: https://github.com/sydev/decrypt-dlc
- Homepage: https://github.com/sydev/decrypt-dlc#readme
- Issues: https://github.com/sydev/decrypt-dlc/issues
- npm.io page: https://npm.io/package/decrypt-dlc

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.88.0
- [request-promise-native](https://npm.io/package/request-promise-native.md) ^1.0.7

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 2.0.1 (latest) — 2019-11-07
- 2.0.0 — 2019-06-06
- 1.0.0 — 2016-12-05
- 0.0.2 — 2016-12-01
- 0.0.1 — 2016-12-01

## 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](#installation)
- [Usage](#usage)
- [API](#api)
- [Development](#development)
-	[Release Notes](#release-notes)
- [Related](#related)


## Installation

```
$ yarn add decrypt-dlc
```

## Usage

``` js
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](#usage) or [API](#api)
- ```1.0.0```
  - Change API, see [Usage](#usage) or [API](#api)
  - Add more endpoints
  - Add [ava](https://www.npmjs.com/package/ava) as test engine
- ```0.0.2``` - Add testing functionality
- ```0.0.1``` - Initial Release

## Related

[decrypt-dlc-cli](https://github.com/sydev/decrypt-dlc-cli)

---
_Source: https://npm.io/package/decrypt-dlc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
