Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alsotang/dep-order


https://github.com/alsotang/dep-order

Last synced: 13 days ago
JSON representation

Awesome Lists containing this project

README

        

dep-order
=

[![Build Status](https://travis-ci.org/alsotang/dep-order.svg?branch=master)](https://travis-ci.org/alsotang/dep-order)

Installation
==

`npm install dep-order`

Usage
==

```js
var depOrder = require('dep-order');
var str = 'a&e&f b&c d&g';
depOrder.parse(str).should.eql([['a', 'e', 'f'], ['b', 'c'], ['d', 'g']]);
```

use `&` to mark parallel, use ` `(space) to mark sequence.