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

node-lepton

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

node-lepton

NodeJS Wrapper Library for Dropbox Lepton

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Node-Lepton

A NodeJS wrapper library for Dropbox JPEG Letpon compression tool.

Quick start

This guide assumes you have Dropbox Lepton and node/npm already installed.

First, run npm install node-lepton --save for your app. Then, in an Express app:

var lepton = require('node-lepton');

// ...

After this you can run one of two commands, compress or decompress. You must provide a valid path for either of these functions to work.

These functions takes a callback that returns an error object and the output in form of a binary file blob.

lepton.compress('../../aoeu.jpeg',  
{
  unjailed: true,
},
function(err, data){
  if(err) throw err;
  
  console.log('Successfully compressed aoeu.jpeg');
});

lepton.decompress('../../aoeu.lep', 
{
  unjailed: true,
},
function(err, data){
  if(err) throw err;
  
  console.log('Successfully decompressed aoeu.lep');
});

##Options

####unjailed type: Boolean

####single_thread type: Boolean

####max_children type: Integer

####preload type: Boolean

####allow_progressive type: Boolean

####fork type: Boolean

####zlib type: Boolean

####timebound type: Integer (in ms)

####Socket type: Boolean or Integer (port)

####Listen type: Boolean or Integer

####ZLibListen type: Boolean or Integer

Keywords

FAQs

Package last updated on 24 Jul 2016

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