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

nfuse

v2.2.5

Published

Fuse project integration utility for NPM

Downloads

21

Readme

Fuse project integration utility for NPM

Let's you use most npm packages with the Fuse scripting layer

npm install -g nfuse

  1. Make a package.json next to your .unoproj.
  2. Run nfuse in that directory
  3. Use your NPM packages in Fuse as you would in any other CommonJS environment.
  4. ???
  5. Profit!

What does it do really?

nfuse is a command written for NodeJS that generates Uno source and project files based on dependencies declared in package.json to allow you to easily require those modules in your Fuse JavaScript source. When you run it in a fuse project directory, it will create a new subdirectory for NPM shenanigans containing a new Uno project and some Uno source shims. It'll then add a project reference to your original project for happy building times.

In Fuse terms, this means that instead of doing, say, require('./node_modules/lodash.isnull/index.js') you would, given a package.json dependency on lodash.isnull, just require('lodash.isnull')

Arguments

  • --force By default, nfuse will early-out if the list of dependencies in package.json has not changed since last run. This flag overrides that behavior.
  • --browser libname Some libraries might not function correctly in their node variant when running in Fuse. You may have better luck with the browser entrypoint if the library offers one. This argument lets you specify libraries for which nfuse will prefer the browser entrypoint if available. You can repeat to flag multiple libraries (-b foo -b bar).

Notes on compatibility

Fuse is not a web or browser based platform despite using markup and JS, and the ways that we handle data binding, layout and animation are all idiosyncratic to the platform. Fuse treats JS like a first class component, but it pays little regard to how JS is handled by other platforms: It is simply used as a scripting language.

Thus, you can assume that any NPM package that acts on the DOM or uses other web concepts won't behave or may not even function at all. Likewise, any NodeJS library that depends on modules like process and fs won't play nice.

Generic JavaScript stuff like ramda, lodash, rx and the like will work fine.

Also note that Fuse has very limited native support for ES6 and only packages built for ES5 will function across all targets.

Disclaimers

Under constant development. YMMV. Report issues as you encounter them.