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

exprs

v0.1.0

Published

A micromodule hosting and registry for JavaScript

Downloads

16

Readme

exprs

The command-line interface for exprs.sh.

exprs is a micromodule hosting and registry service for JavaScript. No worry about setting lint, formatting, transpilations or test runners. Just write and share your code.

Features

  • Just expression. A micromodule is a single expression of JavaScript, which will do one thing well.
  • Immutable. All micromodules are immutable and would never dissapear.
  • Deterministic. With aliasing, your dependencies are not unintentionally upgraded and are always the exact same.
  • Transpile on install. The transpilation runs on the installtion phase, so module users can select supporting environments instead of authors.
  • No task setup. Common tasks like linting and formatting are integrated into the platform.
  • No name collision. All micromodules have an unique name and can have alias names under your namespace.

Get started

Install the package from npm:

npm install --global exprs

# or with `yarn`
yarn global add exprs

Install a micromodule:

exprs add @nkzawa/leftPad

Use it on your applications as always you do with node modules:

const leftPage = require("@nkzawa/leftPad");

Commands

exprs install

Install micromodules defined in package.json. This command is the default so you can execute it as just exprs.

exprs install

# or just
exprs

dependencies and devDependencies are defined on the exprs field:

{
  "exprs": {
    "dependencies": {
      "@nkzawa/leftPad": "leftPad_a01",
      "@username/aliasName": "moduleName_b12",
      "someModule_c23": "someModule_c23"
    }
  }
}

To not install devDependencies, use the --production option:

exprs --production

exprs add <module|alias...>

Install a micromodule from the registry and add it to package.json.

exprs add @nkzawa/leftPad

To install as devDependencies, run with the --dev (or -d) option:

exprs add --dev @nkzawa/leftPad

exprs upgrade [alias...]

Upgrade aliases to the latest version of micromodules.

exprs upgrade

exprs remove <module|alias...>

Uninstall a micromodule and remove it from package.json.

exprs remove @nkzawa/leftPad

exprs help

Display the help message.

exprs help

Integration with npm

When your npm package has dependencies on exprs micromodules, you want to setup a npm hook script to install micromodules along with npm install:

{
  "scripts": {
    "install": "exprs"
  },
  "dependencies": {
    "exprs": "*"
  }
}

License

MIT