https://github.com/alsotang/dep-order
https://github.com/alsotang/dep-order
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alsotang/dep-order
- Owner: alsotang
- Created: 2014-08-26T04:30:47.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-27T03:06:59.000Z (almost 11 years ago)
- Last Synced: 2025-03-16T10:33:51.750Z (4 months ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
dep-order
=[](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.