1.0.0 • Published 7 years ago

sort-file-content v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

sort-file-content

Sort file content line ascending or descending

npm Package downloads per month

Installation

npm install --save sort-file-content

Example

var sortFileContent = require('sort-file-content')
try {
    var asc = sortFileContent('example.txt')
    var desc = sortFileContent('example.txt', 'desc')

    console.log('######### Ascending #########')
    console.log(asc)
    console.log('######### Descending #########')
    console.log(desc)
} catch (error) {
    console.log(error.message)
}
1.0.0

7 years ago