
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
This is an Unofficial API of bitly.com [VERSION 4]
Using NPM npm install bitly4api
Using GIT git clone https://github.com/kishanmadhesiya/bitly4api.git
You need 'ACCESS TOKEN' from bitly.com. Visit: https://bitly.com/a/oauth_apps
Check http://dev.bitly.com/ for more info.
// For ES2015/ES6
import Bitly from 'bitly4api';
let bitly = new Bitly('<ACCESS TOKEN>');
bitly.shorten('http://nodejs.org', (response) => {
console.log(response);
}, (error) => {
console.log(error);
});
// For ES5
var Bitly = require('bitly4api');
var bitly = new Bitly('<ACCESS TOKEN>');
bitly.shorten('https://github.com/kishanmadhesiya/bitly4api')
.then(function(response) {
console.log(response);
}, function(error) {
console.log(error);
});
Mail me @ kishanmadhesiya@gmail.com
You can also PayPal Me
To run tests type npm test
.
For coverage type npm run coverage
FAQs
Bitly 4 api
The npm package bitly4api receives a total of 30 weekly downloads. As such, bitly4api popularity was classified as not popular.
We found that bitly4api 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.