← All tools

infrablocks/ruby_npm

Popularity 65 Updated Development & Build

A simple Ruby wrapper for invoking NPM commands.

githubauto-collected

Installation

A directly usable install command is not verified yet. Check the project documentation or releases.

RubyNPM

A simple wrapper around the npm binary to allow execution from within a Ruby program, RSpec test or Rakefile.

Installation

Add this line to your application's Gemfile:

gem 'ruby_npm'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rubynpm

Usage

To require RubyNPM:

require 'ruby_npm'

Documentation

  • API docs

Development

To install dependencies and run the build, run the pre-commit build:

./go

This runs all unit tests and other checks including coverage and code linting / formatting.