Use LZO for decompression on Node.js
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
src
.gitignore
.travis.yml
LICENSE
README.md
binding.gyp
index.js
package.json
yarn.lock

README.md

lzo-decompress

Use LZO for decompression on Node.js

Introduction

lzo-decompress is an N-API wrapper around the LZO implementation of FFMpeg's libavutil library. It uses version 3 of N-API which is only available on Node v10 and higher.

This software uses code of FFmpeg licensed under the LGPLv3 and its source can be downloaded here.

Usage

const lzo = require('lzo-decompress');

lzo.decompress(input, length);

Building from source

  • yarn prebuild
  • yarn prebuild-ia32 (for 32-bit versions)

On macOS, you may need to do brew install ffmpeg first.

Updating on Yarn/NPM

The following steps will update the module on Yarn/NPM:

  • yarn version
  • git push && git push --tags
  • Wait for Travis to finish.
  • Download the releases from Github: prebuildify-ci download
  • npm publish

Note that you need to yarn global add prebuildify-ci to get the prebuilds.