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.
Shorten URLs with Bitly.
Usage: chauncey <url> [options]
Options:
-h, --help Show help
Example:
chauncey http://google.com/ Shorten http://google.com/ using Bitly
Chauncey McPufferson is Bitly's mascot :smiley:
$ npm i -g chauncey
First you need a Bitly developer access token. You can either pass this token directly via the API, or add it to your user environment so chauncey can pick it up automatically. For example:
$ BITLY_ACCESS_TOKEN=123abc chauncey http://google.com/
You can also use a .chaunceyrc
file. Chauncey will look for .chaunceyrc
starting in process.cwd()
, then ../
, ../../
, all the way up to the filesystem root. It should have the following content:
export BITLY_ACCESS_TOKEN=123abc
Chauncey will output the shortened URL to stdout
:
$ chauncey http://google.com/
http://bit.ly/1jib0Hi
So on OS X, you can do stuff like:
$ chauncey http://google.com/ | pbcopy
Shortens url
using the Bitly API.
Arguments
url
- The URL to shorten.token
- Optional Bitly access token. Will take precedence over BITLY_ACCESS_TOKEN
defined in the user environment (see configuration).done(error, result)
- Optional A callback which is called with the shortened URL, or an error.Example
import chauncey from 'chauncey';
chauncey({
url: 'http://google.com/',
token: '123abc',
done: (error, result) => {
if (error) return console.error(error.message);
console.log(result);
}
});
$ npm test
This module uses the Bitly API, but is neither developed nor endorsed by Bitly.
MIT
FAQs
Shorten URLs with bitly.
The npm package chauncey receives a total of 14 weekly downloads. As such, chauncey popularity was classified as not popular.
We found that chauncey 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.