1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00
Files
Boostnote/lib/ace-modes.js
2015-10-19 11:46:58 +09:00

17 lines
440 B
JavaScript

var fs = require('fs')
var path = require('path')
var rootUrl = process.cwd()
if (rootUrl === '/') rootUrl = require('remote').require('app').getAppPath()
var url = path.resolve(rootUrl, './submodules/ace/src-min')
console.log(url)
module.exports = fs.readdirSync(url)
.filter(function (file) {
return file.match(/^mode-/)
})
.map(function (file) {
var match = file.match(/^mode-([a-z0-9\_]+).js$/)
return match[1]
})