https://github.com/rezen/retirejs
Retirejs cli tool in golang!
https://github.com/rezen/retirejs
javascript security
Last synced: 2 months ago
JSON representation
Retirejs cli tool in golang!
- Host: GitHub
- URL: https://github.com/rezen/retirejs
- Owner: rezen
- Created: 2018-10-20T20:57:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-21T03:47:55.000Z (over 7 years ago)
- Last Synced: 2025-06-12T21:47:18.188Z (about 1 year ago)
- Topics: javascript, security
- Language: Go
- Homepage:
- Size: 111 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# retirejs
A cli tool for retirejs written in golang - aka a single binary!
**Features**
- Scan a specific JavaScript file
- Scrape JavaScript assets from a url and check for vulnerable libraries
- Scan a directory for vulnerable libraries
## Usage
```shell
retirejs http://example.com
retirejs ~/vcs/test
```
## Building
```
# Fetch code
go get github.com/rezen/retirejs
git clone https://github.com/rezen/retirejs.git
cd ./retirejs/cmd/retirejs/
go build -o retirejs main.go
GOOS=windows GOARCH=386 go build -o retirejs.exe main.go
# Add binary to your path
cp retirejs /usr/bin/retirejs
```
## Todo
- Report formats
- Check sha1
- Use headless chrome to scrape versions from DOM
- Receive from stdin pipe
- Web directory listing of assets handling
- *Maybe* npm modules? (npm audit does this but single binary is *muy bien*)