
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
A NodeJS module to interface with Google's URL shortening service.
This library implements a client to consume the API (most of it) documented at https://developers.google.com/url-shortener/v1/getting_started#shorten
It supports the following actions:
Shorten URL Expand Shortened URL Get Analytics for Shortened URL
The three actions supported by this library do not require an API key, but Google recommends getting one here: https://code.google.com/apis/console
var GoogleUrl = require( 'google-url' );
googleUrl = new GoogleURL();
// OR
googleUrl = new GoogleURL( { key: 'Your Real Key Here' });
googleUrl.shorten( 'http://bluerival.com/', function( err, shortUrl ) {
// shortUrl should be http://goo.gl/BzpZ54
} );
googleUrl.shorten( 'http://goo.gl/BzpZ54', function( err, longUrl ) {
// longUrl should be http://bluerival.com/
} );
googleUrl.analytics( 'http:/goo.gl/BzpZ54', function( err, results ) {
/* format of results will be:
{
created: "An ISO Date",
analytics: {
allTime: {
shortUrlClicks: 2,
longUrlClicks: 3,
referrers: [
{ count: 2, "id": "http://HildoerSystems.com/" } /* , ... */
],
countries: [
{ count: 10, "id": "US" } /* , ... */
],
browsers: [
{ count: 3, "id": "Firefox" } /* , ... */
],
platforms: [
{ count: 6, "id": "Mac" } /* , ... */
]
},
month: { /* same schema as allTime */ },
week: { /* same schema as allTime */ },
day: { /* same schema as allTime */ },
twoHours: { /* same schema as allTime */ }
} */
}
} );
Please report bugs to https://github.com/BlueRival/node-google-url/issues
(The MIT License)
Copyright (c) 2012 BlueRival Software anthony@bluerival.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
An API client for the Google URL shortening service goo.gl
The npm package google-url receives a total of 762 weekly downloads. As such, google-url popularity was classified as not popular.
We found that google-url 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.