# jssa

> JS static analyzer (jssa): An aggregation of javascript source code static analysis tools

Latest version **0.0.5** (published 2018-09-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install jssa
pnpm add jssa
yarn add jssa
bun add jssa
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2018-09-12 |
| First published | 2018-08-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 16 |
| Unpacked size | 26.8 KB |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Cyclopt |
| Maintainers | kyrcha |

## Links

- npm: https://www.npmjs.com/package/jssa
- Repository: https://github.com/cyclopt/jssa
- Homepage: https://github.com/cyclopt/jssa#readme
- Issues: https://github.com/cyclopt/jssa/issues
- npm.io page: https://npm.io/package/jssa

## Dependencies (16)

- [fs](https://npm.io/package/fs.md) ^0.0.1-security
- [nsp](https://npm.io/package/nsp.md) ^3.2.1
- [walk](https://npm.io/package/walk.md) ^2.3.14
- [eslint](https://npm.io/package/eslint.md) ^4.19.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.10
- [esprima](https://npm.io/package/esprima.md) ^4.0.1
- [shelljs](https://npm.io/package/shelljs.md) ^0.7.8
- [sonarjs](https://npm.io/package/sonarjs.md) ^1.0.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.1
- [escomplex](https://npm.io/package/escomplex.md) ^2.0.0-alpha
- [jsinspect](https://npm.io/package/jsinspect.md) ^0.12.7
- [babel-eslint](https://npm.io/package/babel-eslint.md) ^8.2.3
- [run-npm-audit](https://npm.io/package/run-npm-audit.md) ^1.0.2
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.8.2
- [eslint-plugin-security](https://npm.io/package/eslint-plugin-security.md) ^1.4.0
- [eslint-plugin-react-native](https://npm.io/package/eslint-plugin-react-native.md) ^3.2.1

## Recent versions

- 0.0.5 (latest) — 2018-09-12
- 0.0.4 — 2018-09-12
- 0.0.3 — 2018-08-24
- 0.0.2 — 2018-08-23
- 0.0.1 — 2018-08-22

## README

[![Cyclopt rating](https://qaas.cyclopt.com/api/projects/5af58bbb718d390004e0feb8/badge)](https://qaas.cyclopt.com)
![Coverage](https://github.com/cyclopt/jssa/blob/master/badge-lines.svg)

# jssa
> JS static analyzer (jssa): An aggregation of javascript source code static analysis tools

## Installation
In order to install `jssa`:
```sh
npm install jssa
```

## Usage
In order to use `jssa` in your project follow the steps:
1. Instert `jssa` in your code
```javascript
$ const jssa = require('jssa');
```
2. Analyze js code
```javascript
var project_root_directory = "example_project_to_analyze";
var list_of_js_files = [ 'example_project/app.js',
  'example_project/appcopy.js',
  'example_project/sonarjs.js',
  'example_project/routes/index.js',
  'example_project/routes/users.js' ]

jssa.analyze_all(project_root_directory, list_of_js_files).then(res => {
  analysis_results = res; // Object containing the analysis results
})
.catch(err => {
  console.log(err); // Print error 
});
```

## Test

The example_project folder contains a project created using `express-generator`. 

The file `appcopy.js` was added to be caught by `jsinspect`. In the `package.json` one extra vulnerable package was added.

To run the tests:
```sh
npm test
```

## Publish steps

(useful for maintainers)

---
_Source: https://npm.io/package/jssa · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
