
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
This is a simple Node.js package to allow easy consumption of the Nip URL shortening service. This library is built with TypeScript.
The service allows you to pass it a url and then receive back a short-url (or longer one) that is fully tracked. These short-urls only work for GET
requests.
npm install nip-urls --save
To use this library, first import and instantiate the class with your reserved domain name and API key.
const { Nip } = require('nip-urls');
const nip = new Nip('nip.is', 'INSERT_API_KEY_HERE');
const url = await nip.shorten('https://root.co.za/careers');
const url = await nip.track('https://root.co.za/careers');
const url = await nip.getUrl('b4949c2b-8a76-44df-8c34-04ccad2f9fb8');
const visits = await nip.getUrlVisits('b4949c2b-8a76-44df-8c34-04ccad2f9fb8');
export interface Url {
id: string;
domainName: string;
sourceUrl: string;
destinationUrl: string;
visitCount: number;
createdAt: moment.Moment;
};
{
id: 'b4949c2b-8a76-44df-8c34-04ccad2f9fb8',
domainName: 'nip.is',
sourceUrl: 'https://nip.is/cXCUn',
destinationUrl: 'https://root.co.za/careers',
visitCount: 1,
createdAt: moment("2019-05-27T20:48:48.519")
}
export interface Visit {
id: string;
url_id: string;
headers: any;
createdAt: moment.Moment;
};
{
id: '11bee574-626e-447f-9864-329c56756872',
urlId: 'b4949c2b-8a76-44df-8c34-04ccad2f9fb8',
headers: {
host: 'nip.is',
'user-agent':
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36',
'cf-ipcountry': 'ZA',
'x-forwarded-for': '41.56.11.31, 197.234.242.47',
'cf-connecting-ip': '41.56.11.31',
...
},
createdAt: moment("2019-05-27T20:50:59.141"),
}
Created by Root.
FAQs
Nip URL shortening tool.
The npm package nip-urls receives a total of 0 weekly downloads. As such, nip-urls popularity was classified as not popular.
We found that nip-urls demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.