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

@decky.fx/sea-builder

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@decky.fx/sea-builder

NodeJS SEA Builder script

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

Single Executable Application (SEA) Builder

What is this?

This is a script to build a SEA, the nodejs version 20 and higher exeperimental feature to compile nodejs scripts into one executable binary, visit nodejs documentation for more info

Requirement

  • nvm
  • nodejs >= v20.16.0
  • yarn

Cloning

git clone https://github.com/deckyfx/sea-builder.git

Make sure nvm is installed, and install node version 20.16.0, visit https://github.com/nvm-sh/nvm for more detail

Set node version

nvm use

Check node version

node --version

it should return

v20.16.0

Make sure yarn is installed, if not use

npm install --global yarn

Install dependecies

yarn install

Latest Version

1.0.5

Running

Just use command npx @decky.fx/sea-builder@{latest_version}

For Example

Just use command npx @decky.fx/sea-builder@1.0.5

Arguments

All these arguments are optional

ArgumentDefaultExplanation
--skip-buildtrueBy default sea-builder will try to build your project,
pack it into single file,
then compile it into executable binary
--namepackage.json
name attribute
The final executable file name to be generated
--entry-inpackage.json main attributeThe entry point of your program,
ussualy it is the index.js
--entry-outindex.jsThe entry point of the program,
after it got packed by @vercel/ncc, before it get compiled

Under the hood

  • This script uses node20 experimental feature of single executable application (sea)
  • This script uses posject to inject the codes, visit nodejs/postject for more info
  • This script uses ncc to pack the source code into single file, visit vercel/ncc for more info

Keywords

sea

FAQs

Package last updated on 12 Sep 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