is-ssim
v1.1.2
Published
Checks if file is a SSIM file.
Downloads
17
Readme
is-ssim
Checks if a file is SSIM (Standard Schedules Information Manual) file.
Install
$ npm install --save is-ssim
Usage
const fs = require('fs')
const isSSIM = require('is-ssim')
fs.readFile('data.ssim', 'utf8', (err, data) => {
if (err) {
console.error(err)
} else {
isSSIM(data)
//=> true (if valid)
// or
// throws 'Not a SSIM file.' error (if not valid)
}
})