# remote-vm

> Use external blocks of code within a Node.js service.

Latest version **0.1.1** (published 2016-12-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install remote-vm
pnpm add remote-vm
yarn add remote-vm
bun add remote-vm
```

## 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.1.1 |
| Published | 2016-12-31 |
| First published | 2016-12-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | andy.potanin |

## Links

- npm: https://www.npmjs.com/package/remote-vm
- Repository: https://github.com/rets-ci/node-remote-vm
- Homepage: https://github.com/rets-ci/node-remote-vm#readme
- Issues: https://github.com/rets-ci/node-remote-vm/issues
- npm.io page: https://npm.io/package/remote-vm

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) ^2.6.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.3
- [request](https://npm.io/package/request.md) ^2.79.0

## Recent versions

- 0.1.1 (latest) — 2016-12-31
- 0.1.0 — 2016-12-31

## README

Use external blocks of code within a Node.js service.
Allows for some of the logic to be centrally located.

* Execute VM scripts fetched from a remote location, e.g. gist.
* Support for private GitHub repositories.

Define a remote function using a URL.
```js
var remoteMethod = vm.define( 'some-url-of-js' );
```

Execute remote function, passing in some new data.
```js
remoteMethod.call({ myData: true });
```

Flush cached method.

```js
remoteMethod.refresh();
```

---
_Source: https://npm.io/package/remote-vm · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
