Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alsotang/dep-order
https://github.com/alsotang/dep-order
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/alsotang/dep-order
- Owner: alsotang
- Created: 2014-08-26T04:30:47.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-27T03:06:59.000Z (over 10 years ago)
- Last Synced: 2024-12-03T17:15:48.895Z (about 1 month ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.