spectralops
v1.3.10
Published
node wrapper for spectralops
Downloads
3
Readme
Spectral (Node)
This is an easy Node wrapper for Spectral Get started:
$ npm i -g spectralops
or
$ yarn add --dev spectralops
To perform a scan using spectral
as a node binary (make sure you have a DSN in your environment):
$ yarn spectral run
To perform a scan programmatically, use as a library:
const path = require('path')
const { spectral } = require('..')
const main = async () => {
const res = await spectral({
dsn: 'https://[email protected]',
noSend: true,
scanPath: path.join(__dirname, '../lib'),
})
console.log('res', res)
}
main()
See more at the Spectral Website