New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gl-dds

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl-dds

Parse DDS images

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

gl-dds

Parse DDS images.

The library has a single method parse which takes a ArrayBuffer and returns an object describing the DDS data.

Example of the returned object:

{ width: 4,
  height: 4,
  depth: 0,
  levels: 3,
  faces: 0,
  format: 33777,
  internal_format: 33777,
  type: 33777,
  bytesPerElement: 8,
  compressed: true,
  parts:
   [ { offset: 128, size: 8 },
     { offset: 136, size: 8 },
     { offset: 144, size: 8 } ],
  parts_count: 3 }

install

npm i gl-dds

usage


import fs from 'fs';
import * as dds from 'gl-dds';

let buffer = fs.readFileSync('foo.dds');

let descriptor = dds.parse(buffer);

Keywords

dds

FAQs

Package last updated on 06 Jan 2018

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