Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Zero-configuration node library and CLI for building executables for all platforms and architectures
Package your Node.js project into an executable that can be run even on devices without Node.js installed.
The construction of the binary allows compilation on arm
and x64
architecture.
If you compile on an
x64
system it will not create the binaries forarm
, but if you compile onarm
it will create the binaries for both architectures.
This library works thanks to ncc, pkg and esbuild, which facilitate this process.
Using binarium Builder
is simple and will work in most cases, but that may not be the case. If so, we recommend using other alternatives such as ncc or pkg.
npm install binarium
pnpm add binarium
yarn add binarium
import {build} from 'binarium'
await build( {
input : 'src/cli.js', // JS or TS file
name : 'app-name', // default is input filename
} )
binarium --input=src/server.js --name=app-name
All of these options are available with the binarium
command by adding the suffix --
and followed by an =
and its value.
type BuilderParams = {
/**
* The app server input file.
*
* The input can be provided without an extension.
* If the extension is omitted, the system will automatically look for the following extensions: `.ts`, `.js`, `.mjs`, `.mts`.
*/
input: string,
/**
* Binary name.
*/
name?: string,
/**
* Directory for the output build.
*
* @default './build'
*/
outDir?: string,
/**
* Build only binary for your current OS.
*
* @default false
*/
onlyOs?: boolean
/**
* The build type Result [all|cjs|bin].
*
* @default 'all'
*/
type?: 'all'|'cjs'|'bin'
}
binarium is an open-source project and its development is open to anyone who wants to participate.
Help us to develop more interesting things.
This software is licensed with GPL-3.0.
PigeonPosse is a ✨ code development collective ✨ focused on creating practical and interesting tools that help developers and users enjoy a more agile and comfortable experience. Our projects cover various programming sectors and we do not have a thematic limitation in terms of projects.
Name | Role | GitHub | |
---|---|---|---|
Angelo | Author & Development | @Angelo | |
PigeonPosse | Collective | @PigeonPosse |
FAQs
Easy-to-use, zero-configuration tool to create executables of your Node, Deno or Bun projects for all platforms and architectures.
We found that binarium demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.