1.0.0 • Published 7 years ago
sort-file-content v1.0.0
sort-file-content
Sort file content line ascending or descending
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