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

@privyid/ghostscript

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@privyid/ghostscript

Ghostscript compiled to WebAssembly

latest
npmnpm
Version
0.1.0-alpha.1
Version published
Weekly downloads
79
31.67%
Maintainers
0
Weekly downloads
 
Created
Source

@privyid/ghostscript

Ghostscript compiled to WebAssembly

[!NOTE] This is low-level WebAssembly library which part of @privyid/ghoulscript. This use GS version 10.03.1

Installation

yarn add @privyid/ghostscript

How to Use

import Module from '@privyid/ghostscript'

const mod     = await Module()
const working = '/working'

mod.FS.mkdir(working)
mod.FS.mount(mod.NODEFS, { root: _dirname }, working)
mod.FS.chdir(working)

await callMain([
  '-q',
  '-dSAFER',
  '-dBATCH',
  '-dNOPAUSE',
  '-sDEVICE=png16m',
  '-dGraphicsAlphaBits=4',
  '-sOutputFile=out/sammple.png',
  'sample.pdf',
])

Development

  • Clone this repo
  • Install Emcripten SDK
  • Run yarn build
  • Run yarn test

Special Thank ❤️

@jsscheller - for build script.

License

AGPL-3.0

FAQs

Package last updated on 09 Jul 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