mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-03-25 09:25:49 +00:00
13 lines
323 B
JavaScript
13 lines
323 B
JavaScript
#!/bin/env node
|
|
|
|
const fs = require('fs')
|
|
const users = fs.readdirSync('users')
|
|
users.forEach(function(user) {
|
|
try {
|
|
const content = fs.readFileSync('users/' + user).toString()
|
|
JSON.parse(content)
|
|
} catch (e) {
|
|
console.error('Invalid JSON in file: ' + user)
|
|
process.exit(1)
|
|
}
|
|
})
|