
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
opizo.com shortener api module for node.js. (client)
All functions return a promise
with npm:
$ npm install --save opizo-api
or with yarn:
$ yarn add opizo-api
Request to get short url:
const opizo = require('opizo-api');
// Not need to setUsername you can use without login
// Just request to short a url
opizo('http://example.com')
.then((result) => {
console.log(`Short url: ${result.shortUrl}\nRequested url: ${result.url}`);
})
.catch((err) => {
console.log(err.message, err.rp.message); console.log(`Requested url: ${err.result.url}`);
});
Request to get short url and file info:
const opizo = require('opizo-api');
// Optional (you can leave it blank or just don't call this function)
// username on here or set as environment varialbe
opizo.setUser('')
// Request to short a url and get file name and size info
opizo.extra('http://bayanbox.ir/thumb/8633283754319788500/GitHub-Logo.jpg')
.then(result => {
console.log(`Short url: ${result.shortUrl}\nRequested url: ${result.url}`);
console.log(`fileName: ${result.fileInfo.name}\nfileSize: ${result.fileInfo.sizeInMB}`);
})
.catch(err => {
console.log(err.message, err.rp.message);
console.log(`Requested url: ${err.result.url}`);
});
Use main function, when you require module you can use it as function like below(opizo is the variable name but after required it is main function):
const opizo = require('opizo-api');
opizo(your-url): request short linkopizo.extra(your-url): request short link & file infoopizo.setUse(your-username): optional, set the username to make your link manageable, you can also use environment variable like this:$ export OPIZO_USERNAME='your-user-name-here'
or just don't call this function.
On main function returned result object have below property:
url: Requested urlshortUrl: short url if request not failedOn extra function returned result object have below property:
url: Requested urlshortUrl: Short url if request not failedfileInfo: File info if request not failed
name: File name if existssizeInMB: File size in pretty formatcontentLength: File size in kberr objectError object on catch have below property:
code: Internal error codemessage: Internal error messageresult: This is result objectrp: More details
code: Error codemessage: Error messageFAQs
opizo.com shortener api module for node.js
We found that opizo-api 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.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.