Socket
Book a DemoInstallSign 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

0.1.0-alpha.1
latest
npmnpm
Version published
Maintainers
0
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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.