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

ffi-builder

v1.1.0

Published

A wrapper on top of ffi package to use addons on Node.js projects.

Downloads

2

Readme

ffi-builder

What is Foreign Function Interface(ffi) on Node.js ?

ffi is a Node.js addon for loading and calling dynamic libraries using pure JavaScript. It can be used to create bindings to native libraries without writing any C++ code.

First things first

  • This package is just a short hand to maintain libraries from differenct languages to your Node.js project directory.
  • Please make sure you have the language build tools installed on your system, this library doesn't provide any build system.
  • Refer ffi-factory-examples for a working code.
  • Read ffi documentation for consuming the library

Notice: This module is not an replacement for the ffi package, infact thi module dosen't even depend on the ffi package.

What ffi-builder has to offer?

Well, ffi-builder provides flexibility to keep the dynamic library source code directly in the Node.js project directory (symbolic link directory can also be used) and provides an option to build or republish the library via Node.js process.

The sole purpose of this package is to maintain the external dynamic library source code inside the Node.js directory, but this can also be used as an individual build system.

Notice: This is not a replacement for ffi package, infact this has no dependency over the ffi package

How to?

  • Anywhere in your Node.js project directory, create a folder to put all the library files (preferebly addons directory on project root folder)
  • For a more detailed introduction to ffi-builder, see the ffi-builder docs.
  • For a more detailed introduction to ffi, see the node-ffi tutorial page.

Requirements

  • Node.js
  • External library build tools
  • Command Prompt/Terminal

Installation

Make sure you have all the requirements installed and run the following command on the working directory:

$ npm install ffi-builder

License

GNU General Public License v3.0. See License file.