New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

drek-decoder

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drek-decoder

DREK ( .drk ) image decoder

  • 0.10.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

DrekDecoder

Installation

npm i drek-decoder

Usage

Command line interface:

node cli.js convert ./IMG.DRK -o ./img.png

Node.js:

var Decoder = require('drek-decoder');

Decoder.readFile('./IMG.DRK')
    .then(img => {

        // Export the first frame
        let selected_frame = 0;
        let canvas = img.frames[selected_frame].generateImageData();

        Decoder.writePng(canvas, './img.png').then(() => {
            console.log("File saved");
        });

    })
    .catch(error => console.error(error.message))
;

FAQs

Package last updated on 06 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc