![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
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 6 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.