# @epublishing/get-gem-paths

> Node/Ruby interop module that queries Bundler for gem paths matching a glob

Latest version **0.2.0** (published 2021-09-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @epublishing/get-gem-paths
pnpm add @epublishing/get-gem-paths
yarn add @epublishing/get-gem-paths
bun add @epublishing/get-gem-paths
```

Provides the command `get-gem-paths`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2021-09-20 |
| First published | 2017-07-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mike Green |
| Maintainers | mikedamage, brewern, mhedges1, niyati.ace, mhedges |
| Keywords | ruby, rubygems, bundler, gem |

## Links

- npm: https://www.npmjs.com/package/@epublishing/get-gem-paths
- Repository: https://bitbucket.org/epub_dev/get-gem-paths
- Homepage: https://bitbucket.org/epub_dev/get-gem-paths#readme
- Issues: https://bitbucket.org/epub_dev/get-gem-paths/issues
- npm.io page: https://npm.io/package/@epublishing/get-gem-paths

## Dependencies (4)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [execa](https://npm.io/package/execa.md) ^5.1.1
- [yargs](https://npm.io/package/yargs.md) ^17.1.1
- [prettyjson](https://npm.io/package/prettyjson.md) ^1.2.1

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2021-09-20
- 0.1.2 — 2018-03-16
- 0.1.1 — 2017-07-28
- 0.1.0 — 2017-07-21

## README

# get-gem-paths

This is a Node module that provides Ruby/Bundler interoperability. It's used to find the locations of installed gems in
the Jade Rails stack, which `grunt-epublishing` then uses to resolve the front-end assets it needs.

This is meant to be installed into a Jade site or engine with a Gemfile present. It uses the current working directory
to initialize Bundler and query its gem registry. It runs a Ruby script to do this, so you must have a working ruby
somewhere in your `PATH`.

## Installation & Usage

```
npm install @epublishing/get-gem-paths
```

```js
const getGemPaths = require('@epublishing/get-gem-paths');

// getGemPaths is a function that returns a promise containing an array of result objects:
getGemPaths('jade').then((results) => {
  console.log(results);
});

/**
 * each result is an object with the following shape:
 * {
 *   name: 'jade',
 *   path: '/path/to/jade',
 *   version: '6.7.pre'
 * }
 */
```

---
_Source: https://npm.io/package/@epublishing/get-gem-paths · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
