highland-unix-sort

1.0.10 • Public • Published

Highland Unix Sort

A rewrite of https://github.com/Clever/unix-sort that uses Highland. This performs a sort using the unix sort command.

Install

npm install highland-unix-sort

Usage

var _ = require('highland');
var sort = require('highland-unix-sort');

_([
  {name: 'sam'},
  {name: 'joe'},
  {},
  {name: 'alice'}
])
.through(sort(['name']))
.toArray(function(arr) { console.log(array); })
// output is [ {}, { name: 'alice' }, { name: 'joe' }, { name: 'sam' } ]

/highland-unix-sort/

    Package Sidebar

    Install

    npm i highland-unix-sort

    Weekly Downloads

    4

    Version

    1.0.10

    License

    MIT

    Last publish

    Collaborators

    • ibash