# notroy

> a tool for remote control of webpages

Latest version **1.0.7** (published 2019-01-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install notroy
pnpm add notroy
yarn add notroy
bun add notroy
```

Provides the command `notroy`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2019-01-15 |
| First published | 2019-01-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 25.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | ysmood.org |
| Maintainers | ysmood |

## Links

- npm: https://www.npmjs.com/package/notroy
- npm.io page: https://npm.io/package/notroy

## Dependencies (6)

- [nisp](https://npm.io/package/nisp.md) ^0.13.4
- [nokit](https://npm.io/package/nokit.md) ^0.27.8
- [nisper](https://npm.io/package/nisper.md) ^0.8.3
- [noflow](https://npm.io/package/noflow.md) ^0.8.11
- [cookies](https://npm.io/package/cookies.md) ^0.7.3
- [path-to-regexp](https://npm.io/package/path-to-regexp.md) ^2.4.0

## Recent versions

- 1.0.7 (latest) — 2019-01-15
- 1.0.6 — 2019-01-15
- 1.0.5 — 2019-01-15
- 1.0.4 — 2019-01-15
- 1.0.3 — 2019-01-15
- 1.0.2 — 2019-01-15
- 1.0.1 — 2019-01-15
- 1.0.0 — 2019-01-15

## README

You can setup your own server (`npm i notroy`) or use the demo service https://n.vane.im.

## Quick Start


Inject this script into a page

```html
<script src="https://n.vane.im/{id}"></script>
```

The `{id}` should be unique for each page, so that you can control different pages
independently. Anyone who has the id can control the page, so you'd better treat it as
a password. Multiple pages can share a same id (actually the id is group id, which can be used for broadcast).
If you left the id empty, a random id will be generated, it will be printed in the console.


### Execute Random Code on Page

Now you are able to execute any code on that page, for example

```bash
curl https://n.vane.im/{id} -d "alert('ok')"
```

The page should alert "ok".


### Get Return Value

The example below will return the user agent of that page.

```bash
curl https://n.vane.im/{id} -d "navigator.userAgent"
```

The client will auto-handle promise.

### Live Reload Page

Use it to auto-reload the page
when file changes during the development.
Get `guard` cli tool from [here](https://github.com/ysmood/gokit).

```
cd to-my-project
guard -- curl https://n.vane.im/{id} -d "location.reload()"
```

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