pkg
deno
Our great sponsors
pkg | deno | |
---|---|---|
77 | 358 | |
22,711 | 87,581 | |
1.0% | 0.7% | |
7.6 | 9.9 | |
17 days ago | 6 days ago | |
JavaScript | Rust | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pkg
- Russhian Roulette: 1/6 chance of posting your SSH private key on pastebin
-
From Ruby to Node: Overhauling Shopify’s CLI for a Better Developer Experience
You don't even need that: https://github.com/vercel/pkg.
I think there are equivalents in the Python ecosystem.
- Valetudo – Free your vacuum cleaner from the cloud
-
Exploring competitive features in Node.js v18 and v19
Another exciting feature is the ability to build a single-executable Node.js binary. Before Node.js v18, the only way to build a Node.js binary was to use a third-party package, like pkg.
-
Docker's technical preview of WASM with Rust
As a comparison I am using https://github.com/vercel/pkg to package my Node.js app into an exe file. Vercel-pkg allows me to build different images for different platforms like Windows, Linux, Mac. It would be nice if it could produce a single .exe that worked on all platforms. But I guess such an exe would have to be bigger. It is not too cumbersome to produce one exe per platform that my users need.
-
Tauri + NodeJS: Alternative to Electron
To run NodeJS as a sidecar we need to pack it into binary. Taurine is bundling your server code and preparing it for packing into a single binary. Using Vercel’s pkg CLI tool we can compile it into a single executable binary. That binary is running with the Tauri application.
-
nodeMyAdmin: The alternative to phpMyAdmin written with node.JS
What if you packaged the whole thing into one executable using pkg?
-
How to run code without node?
In addition to the other responses, there are node packages like pkg and nexe that you can use to package the node executable and your code into a single executable.
-
Memories: Edinburgh ML to Standard ML
Not really, at last check it just bundles the entire .Net runtime with the compiled image. It's basically the equivalent of https://github.com/vercel/pkg or similar tools.
-
Command line applications
You can even pack your terminal application in a single binary that does not require separate NodeJS installed via pkg.
deno
-
When not to use Deno ☄️
import { connect } from "https://deno.land/x/redis/mod.ts"; const redis = await connect({ hostname, port }); let cachedResult = await redis.get(query); let result = cachedResult; if (!cachedResult) { result = db.get(query); await redis.set(query, result); } return result;
-
[AskJS] Which JS libraries and packages are currently your favourites?
This feat: denort binary #9041 used to exist. No longer. I'm pretty sure Node.js doesn't have such capability either - Node.js download doesn't even ship with just the executable - npm and npx are in the download zip - and those files need to be modified to even use npx without installing locally or globally.
-
Is it recommended that a backend for React be written in Javascript? Or is another language like Python Ok
Finally, you could use a runtime like Deno which natively supports Typescript.
-
Node + SWC make a lightning fast typescript runtime
Why not just use https://deno.land/
-
The ultimate template for publishing ES modules
Fast iterating thanks to Deno, for built in Typescript debugging and bundling
-
Stable Release of Deno
I usually look at https://github.com/denoland/deno for the releases.
Or you can see the latest release on GitHub Releases page. https://github.com/denoland/deno/releases
-
Ask HN: What would be your stack if you are building an MVP today?
I'd run an API using Deno (https://deno.land), and consume that API with an SSR/SSG site built using Astro (https://astro.build). SCSS for styling, and probably just Vanilla JS (written in Typescript and compiled via Deno) — I increasingly find that unless my site is massively interactive, plain old Vanilla JS is totally sufficient.
-
[AskJS] How would you build a JavaScript engine around a single module?
First, you would need to obtain the source code for the Deno runtime and its dependencies, which you can find on the Deno GitHub repository (https://github.com/denoland/deno).
Reading Deno source code dependcies to build appear to be Rust and V8. listenTls: https://github.com/denoland/deno/blob/f0c79a676cc36a5e8f6f5af86d93186d41974518/ext/net/01_net.js, https://github.com/denoland/deno/blob/f0c79a676cc36a5e8f6f5af86d93186d41974518/ext/net/02_tls.js.
What are some alternatives?
nexe - 🎉 create a single executable out of your node.js apps
ncc - Compile a Node.js project into a single file. Supports TypeScript, binary addons, dynamic requires.
ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
typescript-language-server - TypeScript & JavaScript Language Server
reverse-engineering - List of awesome reverse engineering resources
esbuild - An extremely fast bundler for the web
bun - Incredibly fast JavaScript runtime, bundler, transpiler and package manager – all in one.
webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
Koa - Expressive middleware for node.js using ES2017 async functions
nvim-lspconfig - Quickstart configs for Nvim LSP
zx - A tool for writing better scripts
warp-reverse-proxy - Fully composable warp filter that can be used as a reverse proxy.