Socket
Book a DemoInstallSign in
Socket

wasm-binutils-arm-linux

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wasm-binutils-arm-linux

binutils for arm-linux compiled as wasm

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

wasm-binutils-arm-linux

This package includes binutils programs for arm-linux. It is compiled to wasm which means, that there are no further dependencies, because everything is done inside the javascript runtime.

Usage

It is recommend to run the functions only inside a child_process, since the underlying emscripten has some shortcomings... Currently the following programs can be used:

strip

const strip = require("wasm-binutils-arm-linux").strip;
let promise = strip(files,options);
  • files: Array<Buffer|string>: specify an array, which contains all files to be stripped. strings are paths to files.
  • options: Array<string>: Pass any option you want, as specified in man strip. Keep in mind that using some options like -o won't be working for obvious reasons.

A Promise is returned by strip, it will either give you back an array of buffers, which are the results of the files or throw an error.

Future

  • Implement more binutils programs: Actually not hard, just needs some tidious boilerplate code...
  • Make it compatible for browser usage

Keywords

wasm

FAQs

Package last updated on 05 Feb 2019

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