
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
-- import "vimagination.zapto.org/jslib"
Package jslib is a javascript packer and library for javascript projects
var (
ErrNoFiles = errors.New("no files")
ErrInvalidURL = errors.New("added files must be absolute URLs")
)
Errors
var (
ErrInvalidExport = errors.New("invalid export")
)
Errors
func NoExports(c *config)
NoExports disables the creation of exports for any potential plugins
func OSLoad(base string) func(url string) (*javascript.Module, error)
OSLoad is the default loader for Package, with the base set to CWD
func Package(opts ...Option) (*javascript.Script, error)
Package packages up multiple javascript modules into a single file, renaming bindings to simulate imports
func ParseDynamic(c *config)
ParseDynamic turns on dynamic import/include parsing
func Plugin(m *javascript.Module, url string) (*javascript.Script, error)
Plugin converts a single javascript module to make use of the processed exports from package
type Option func(*config)
Option in a type that can be passed to Package to set an option
func File(url string) Option
File is an Option that specifies a starting file for Package
func Loader(l func(string) (*javascript.Module, error)) Option
Loader sets the func that will take URLs and produce a parsed module
FAQs
Unknown package
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
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.