# to-page

> 命令行快速打开浏览器

Latest version **0.1.7** (published 2020-01-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install to-page
pnpm add to-page
yarn add to-page
bun add to-page
```

Provides the command `to-page`.

## 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.7 |
| Published | 2020-01-01 |
| First published | 2019-12-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | yatsov |

## Links

- npm: https://www.npmjs.com/package/to-page
- Repository: https://gitee.com/yatsov/to-page
- Issues: https://gitee.com/yatsov/to-page/issues
- npm.io page: https://npm.io/package/to-page

## Recent versions

- 0.1.7 (latest) — 2020-01-01
- 0.1.6 — 2020-01-01
- 0.1.5 — 2020-01-01
- 0.1.4 — 2019-12-30
- 0.1.3 — 2019-12-30
- 0.1.2 — 2019-12-30
- 0.1.1 — 2019-12-28
- 0.1.0 — 2019-12-28

## README

# to-page

## 这是个什么？

我们搞开发的，有时候打开网页会觉得很烦。
去找书签浪费时间，我们不如把一些开发需要的网页保存起来通过命令行来进行打开。
省的你拿出时间看微博 嘿嘿。🐈

## 用法

全局安装to-page包
```
   npm install to-page -g
```
然后`to-page baidu` 你就会发现浏览器被打开展示的是百度的页面啦
如果你想增加Url可以使用下面的set命令或者直接用一个JSON文件批量导入

## 命令

### 1 导入

```
    to-page import ${jsonfile}
```

${jsonfile}就是一个 JSON 的文件通过键值对来保存对应的网页数据。举例如下：

```
{
  "baidu": "https://www.baidu.com/",
  "gitee": "https://gitee.com/"
}
```

### 2 打开页面

```
to-page ${key}
```

key 里面就是你设置的 URL 的 key

### 3 展示

```
to-page show
```

能够展示出现在有的数据

### 4 set

```
to-page set ${key} ${url}

```

设置 url

### 5 npm

在当前npm工程内根目录下运行 下面命令就可以打开 npm.js当前的工程啦

```
to-page npm
```


## 如何共建 

提分支和到master

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