Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
A utility that implements similar functionality to the unix less utility for observing API endpoints during debugging.
A utility that implements similar functionality to the unix less utility for observing API endpoints during debugging.
WARNING
This tool can be very load intensive on your server. It will query your server every 40ms by default to keep the data up to date. If your maximum request time is larger than 40ms, you can change the interval by suppying --interval ms
on the command line.
npm install --save api-less
Your API endpoint is best paired with nodemon so that your server will automatically restart when you save your changes.
Supply a URL to observe and let the utility do its magic:
$ api-less --url http://localhost:3000/api/v1/users/jacksondelahunt
The program is interactive (much like less is) in that you can use single keys to perform actions.
Arrow Up/Down
- Scroll up or down the buffer one line at a time.
Page Up/Down
- Scroll up or down the buffer one page at a time.
n
- Toggle line numbers on or off.
q
- Exit the program.
--url string
- The fully qualified URL of your endpoint to query.
--interval integer
- The number of milliseconds before requerying the URL.
--lines boolean
- Display line numbers in output.
When building APIs you want to see the object you're exposing. Each time you make a change to your code, you need to query the API again to get the latest version. If you're working with a large object, and the part you're interested in is past the bottom of the screen, you have to scroll each time. This is obviously painful.
Instead, use this tool to observe your API endpoint's output as you change your code, all whilst maintaining your position in the output.
MIT
FAQs
A utility that implements similar functionality to the unix less utility for observing API endpoints during debugging.
The npm package api-less receives a total of 8 weekly downloads. As such, api-less popularity was classified as not popular.
We found that api-less demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.