# espolice

> espolice は Source2Source に影響を受けたコーディング支援システムで、

Latest version **1.0.7** (published 2020-01-09) · Apache license · 0 weekly downloads

## Install

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

Provides the command `espolice`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2020-01-09 |
| First published | 2019-11-12 |
| Weekly downloads | 0 |
| License | Apache |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 13 |
| Unpacked size | 3.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | KimotoYanke |
| Maintainers | kimotoyanke |

## Links

- npm: https://www.npmjs.com/package/espolice
- Repository: https://github.com/KimotoYanke/espolice
- Homepage: https://github.com/KimotoYanke/espolice#readme
- Issues: https://github.com/KimotoYanke/espolice/issues
- npm.io page: https://npm.io/package/espolice

## Dependencies (13)

- [oclif](https://npm.io/package/oclif.md) ^1.13.6
- [anymatch](https://npm.io/package/anymatch.md) ^3.1.1
- [chokidar](https://npm.io/package/chokidar.md) ^3.0.0
- [espurify](https://npm.io/package/espurify.md) ^2.0.1
- [deep-diff](https://npm.io/package/deep-diff.md) ^1.0.2
- [esrecurse](https://npm.io/package/esrecurse.md) ^4.2.1
- [seedrandom](https://npm.io/package/seedrandom.md) ^3.0.5
- [@babel/node](https://npm.io/package/@babel/node.md) ^7.5.5
- [fast-equals](https://npm.io/package/fast-equals.md) ^2.0.0
- [@babel/types](https://npm.io/package/@babel/types.md) ^7.4.4
- [@oclif/config](https://npm.io/package/@oclif/config.md) ^1.13.3
- [@oclif/command](https://npm.io/package/@oclif/command.md) ^1.5.19
- [@oclif/plugin-help](https://npm.io/package/@oclif/plugin-help.md) ^2.2.1

## Recent versions

- 1.0.7 (latest) — 2020-01-09
- 1.0.6 — 2019-11-14
- 1.0.5 — 2019-11-14
- 1.0.4 — 2019-11-14
- 1.0.0 — 2019-11-12

## README

# espolice

espolice は Source2Source に影響を受けたコーディング支援システムで、

1. プログラミングの効率の強化
2. コーディングルールから外れたコードの排除

の二つを行います。

espolice では、まずプロジェクトの管理者が「コーディングルール」を定めます。このコーディングルールは Source2Source と比較すると書きやすくなっています。

プログラマは、コーディング中 espolice をバックグラウンドで起動させておきます。espolice は絶えずファイルシステムの監視を行い、また能動的な介入を行います。

例えば、

- ファイル新規作成(`touch`)だけでテンプレートを展開

```shell
touch a.js
```

```javascript 
module.exports = () => {};
```

- 配下ファイルが作成されると、`index.js`に登録コードを追加

```shell
touch a.js
mkdir dir
```

```javascript
const { Router } = require("express");

const router = Router();
router.use("/a", require("./a.js"));
router.use("/dir", require("./dir"));
module.exports = router;
```

- 状態の管理

```javascript
import { Router } from "express";
const router = Router();
router.get("/", (req, res, next) => {
  console.log("GET", "index"); // <- "index"を変化させると
});
router.post("/", (req, res, next) => {
  console.log("POST", "index"); // <-
});
export default router;
```

```javascript
import { Router } from "express";
const router = Router();
router.get("/", (req, res, next) => {
  console.log("GET", "root"); // <- "index"を変化させると
});
router.post("/", (req, res, next) => {
  console.log("POST", "root"); // <- こちらも変化する
});
export default router;
```

といったことが可能となります。

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