# googleajaxurls

> Library for converting to and from the urls used by Google's ajax crawling specification (https://developers.google.com/webmasters/ajax-crawling/docs/specification)

Latest version **0.1.0** (published 2012-10-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install googleajaxurls
pnpm add googleajaxurls
yarn add googleajaxurls
bun add googleajaxurls
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2012-10-13 |
| First published | 2012-10-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Liam McLennan |
| Maintainers | liammclennan |
| Keywords | google, ajax |

## Links

- npm: https://www.npmjs.com/package/googleajaxurls
- Repository: https://github.com/liammclennan/googleajaxurls
- npm.io page: https://npm.io/package/googleajaxurls

## Dependencies (1)

- [underscore](https://npm.io/package/underscore.md) ~1.4.2

## Recent versions

- 0.1.0 (latest) — 2012-10-13

## README

Googleajaxurls
==============

Convert to and from the url format required by the [Google's Ajax Crawling Specification](https://developers.google.com/webmasters/ajax-crawling/docs/specification).

    http://domain.com/#!key1=value1&key2=value2

becomes

    http://domain.com/?_escaped_fragment_=key1=value1%26key2=value2

Usage
----

### Hashbang Mode

    var googleajaxurls = require('googleajaxurls')({hashbangMode: true}),
        startUrl = 'http://domain.com/#!one/two/three';
    
    googleajaxurls.toEscapedFragment(startUrl); // 					--> http://domain.com/?_escaped_fragment_=one%2Ftwo%2Fthree
    googleajaxurls.fromEscapedFragment(googleajaxurls.toEscapedFragment(startUrl)); // 	--> http://domain.com/#!one/two/three
   
### Normal Mode

    var googleajaxurls = require('googleajaxurls')(),
        startUrl = 'http://domain.com/one/two/three';
    
    googleajaxurls.toEscapedFragment(startUrl); //                  --> http://domain.com/one/two/three?_escaped_fragment_=
    googleajaxurls.fromEscapedFragment(googleajaxurls.toEscapedFragment(startUrl)); //  --> http://domain.com/one/two/three

---
_Source: https://npm.io/package/googleajaxurls · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
