npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pika-plugin-pkg-node

v1.1.1

Published

Pika plugin to package a Node.js app into an executable

Downloads

6

Readme

pika-plugin-pkg-node

Build Status GitHub

A @pika/pack build plugin. Package a Node.js app into an executable that can be run on devices without installing Node.js. This plugin use the awesome @zeit/pkg library under the hood.

Install

$ npm install pika-plugin-pkg-node --save-dev  # npm
$ yarn add pika-plugin-pkg-node --dev          # yarn

Usage

{
  "name": "example-package-json",
  "version": "1.0.0",
  "@pika/pack": {
    "pipeline": [
      ["@pika/plugin-standard-pkg"],
      ["@pika/plugin-build-node"],
      ["pika-plugin-pkg-node", { /* options: see below */ } ]
    ]
  }
}

For more information about @pika/pack & help getting started, check out the main project repo.

Options

assets

Default value: []

Specify the assets packaged into the executable as raw content without modifications. The assets property is a list of globs, e.g. ["assets/**/*"].

debug

Defaults to false

Log packaging process. Useful, if you have issues with some particular file not packaged into the executable.

name

Defaults to the package name

Specify the name of the generated executable. For example, if the value of name property is "pika", the following executables will be generated:

  • pika-macos
  • pika-linux
  • pika-win.exe

outPath

Default value: "bin"

Specify the path, relative to the pkg folder, where the generated executables must be created.

scripts

Default value: []

Specify the scripts packaged into the executable without sources. Files specified as scripts will be compiled using v8::ScriptCompiler. The scripts property is a list of globs, e.g. ["scripts/**/*"].

targets

Default value: ["linux","macos","win"]

A target consists of 3 elements, separated by dashes, for example node6-macos-x64 or node4-linux-armv6:

  • nodeRange: node${n} or latest
  • platform: freebsd, linux, alpine, macos, win
  • arch: x64, x86, armv6, armv7

You may omit any element (and specify just node6 for example. The omitted elements will be taken from the current platform or system-wide Node.js installation (its version and arch). There is also an alias host, that means that all 3 elements are taken from the current platform/Node.js.

Examples

Contributing

Contributions are very welcome!

See CONTRIBUTING.md for more information and how to get started.

License

MIT © kevinpollet