instant-note
Advanced tools
| c |
+6
-1
@@ -13,3 +13,8 @@ #!/usr/bin/env node | ||
| const notesDir = path.resolve(__dirname, './notes') | ||
| const notes = fs.readdirSync(notesDir).map(path => { | ||
| const notes = fs.readdirSync(notesDir).sort(function (a, b) { | ||
| const aTime = fs.statSync(notesDir + '/' + a).mtime.getTime() | ||
| const bTime = fs.statSync(notesDir + '/' + b).mtime.getTime(); | ||
| return bTime - aTime; | ||
| }).map(path => { | ||
| return path.replace('.txt', '') | ||
@@ -16,0 +21,0 @@ }) |
+1
-1
@@ -1,1 +0,1 @@ | ||
| 201 | ||
| 2012 |
+1
-1
| { | ||
| "name": "instant-note", | ||
| "version": "0.0.12", | ||
| "version": "0.0.13", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14429
1.35%16
6.67%222
1.83%