# fasten

> Built originally for [node-ectwo](https://github.com/crcn/node-ectwo)

Latest version **0.0.17** (published 2013-09-16) · BSD license · 0 weekly downloads

## Install

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

## 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.0.17 |
| Published | 2013-09-16 |
| First published | 2013-08-06 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | architectd |

## Links

- npm: https://www.npmjs.com/package/fasten
- Repository: https://github.com/crcn/irons.js
- npm.io page: https://npm.io/package/fasten

## Dependencies (8)

- [tq](https://npm.io/package/tq.md) 0.2.x
- [sift](https://npm.io/package/sift.md) 0.0.12
- [async](https://npm.io/package/async.md) ~0.2.9
- [flatten](https://npm.io/package/flatten.md) 0.0.x
- [toarray](https://npm.io/package/toarray.md) 0.0.1
- [flatstack](https://npm.io/package/flatstack.md) 0.0.7
- [underscore](https://npm.io/package/underscore.md) ~1.5.2
- [type-component](https://npm.io/package/type-component.md) 0.0.1

## Recent versions

- 0.0.17 (latest) — 2013-09-16
- 0.0.16 — 2013-09-16
- 0.0.15 — 2013-09-15
- 0.0.14 — 2013-09-15
- 0.0.13 — 2013-09-15
- 0.0.12 — 2013-09-11
- 0.0.11 — 2013-09-11
- 0.0.10 — 2013-09-10
- 0.0.8 — 2013-09-07
- 0.0.7 — 2013-09-07
- 0.0.6 — 2013-08-07
- 0.0.5 — 2013-08-06
- 0.0.3 — 2013-08-06
- 0.0.0 — 2013-08-06

## README

Built originally for [node-ectwo](https://github.com/crcn/node-ectwo)

```coffeescript


class Regions

  ###
  ###
  
  findOne: (search, next) ->
    # find a region, and return it
  

class Image
  
  ###
  ###
  
  createInstance: (options, next) ->
    # create, and return instance
    
  ###
  ###
  
  migrate: (options, next) ->
    # migrate to a new region, and return the image
    
class Instance
  
  ###
  ###
  
  stop: (next) ->
    # stop the instance
    
  ###
  ###
  
  start: (next) ->
    #start the instanc
    

```

Ironify:

```coffeescript
irons = require("irons")()
ectwo = require("ectwo")()

irons.add("instances", {
  "findOne": "instance"
}).add("instance", {
  "shutdown": {
    type: "image",
    
  },
  "createImage": "image"
}).add("image", {
  "migrate": "image",
  "createInstance": "instance"
})

irons.wrap(ectwo.instances, "instances")




# shutdown one instance, migrate it to a new region, and start it up again.
proc = ectwo.
  instances.
  findOne({ tags: { type: "mongodb" } }).
  shutdown().
  migrate({ region: ectwo.regions.findOne({ name: /us-*/}) }).
  createInstance().
  start()

```

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