Skip to content

Commit 923a34c

Browse files
BenFradetbenjben
authored andcommitted
Move the nodejs codebase to its own repository (closes #201)
1 parent 1d0d06e commit 923a34c

File tree

10 files changed

+11
-8421
lines changed

10 files changed

+11
-8421
lines changed

README.md

Lines changed: 11 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -20,66 +20,17 @@ https://s3-eu-west-1.amazonaws.com/snowplow-hosted-assets/third-party/referer-pa
2020

2121
If there is an issue with the database necessitating a re-release within the month, the corresponding files will be overwritten.
2222

23-
## Usage: Scala
24-
25-
Check out the dedicated repository: https://github.com/snowplow-referer-parser/scala-referer-parser
26-
27-
## Usage: Java
28-
29-
Check out the dedicated repository: https://github.com/snowplow-referer-parser/java-referer-parser
30-
31-
## Usage: Ruby
32-
33-
Check out the dedicated repository: https://github.com/snowplow-referer-parser/ruby-referer-parser
34-
35-
## Usage: Python
36-
37-
Check out the dedicated repository: https://github.com/snowplow-referer-parser/python-referer-parser
38-
39-
## Usage: node.js
40-
41-
The node.js (JavaScript) version of this library uses a hybrid of the new and old API, and identifies search, social, webmail, internal and unknown referers:
42-
43-
Create a new instance of a Referer object by passing in the url you want to parse:
44-
45-
```js
46-
var Referer = require('referer-parser')
47-
48-
referer_url = 'http://www.google.com/search?q=gateway+oracle+cards+denise+linn&hl=en&client=safari'
49-
50-
var r = new Referer(referer_url)
51-
```
52-
53-
The `r` variable now holds a Referer instance.
54-
55-
Optionally, pass in the current URL as well, to handle internal referers
56-
57-
```js
58-
var Referer = require('referer-parser')
59-
60-
var referer_url = 'http://www.snowplowanalytics.com/about/team'
61-
var current_url = 'http://www.snowplowanalytics.com/account/profile'
62-
63-
var r = Referer(referer_url, current_url)
64-
```
65-
66-
For more information, please see the node.js [README][nodejs-readme].
67-
68-
## Usage: .NET
69-
70-
Check out the dedicated repository: https://github.com/snowplow-referer-parser/dotnet-referer-parser
71-
72-
## Usage: PHP
73-
74-
Check out the dedicated repository: https://github.com/snowplow-referer-parser/php-referer-parser
75-
76-
## Usage: Go
77-
78-
Check out the dedicated repository: https://github.com/snowplow-referer-parser/golang-referer-parser
79-
80-
## Usage: Erlang
81-
82-
Check out the dedicated repository: https://github.com/silviucpp/refererparser
23+
## Language-specific repositories
24+
25+
- Scala: https://github.com/snowplow-referer-parser/scala-referer-parser
26+
- Java: https://github.com/snowplow-referer-parser/java-referer-parser
27+
- Ruby: https://github.com/snowplow-referer-parser/ruby-referer-parser
28+
- Python: https://github.com/snowplow-referer-parser/python-referer-parser
29+
- NodeJS: https://github.com/snowplow-referer-parser/nodejs-referer-parser
30+
- .NET: https://github.com/snowplow-referer-parser/dotnet-referer-parser
31+
- PHP: https://github.com/snowplow-referer-parser/php-referer-parser
32+
- Golang: https://github.com/snowplow-referer-parser/golang-referer-parser
33+
- Erlang: https://github.com/silviucpp/refererparser
8334

8435
## referers.yml
8536

@@ -127,37 +78,17 @@ You can contact the Snowplow Analytics team through any of the [channels listed
12778

12879
`referers.yml` is based on [Piwik's][piwik] [`SearchEngines.php`][piwik-search-engines] and [`Socials.php`][piwik-socials], copyright 2012 Matthieu Aubry and available under the [GNU General Public License v3][gpl-license].
12980

130-
The node.js (JavaScript) port is copyright 2013-2014 [Martin Katrenik][mkatrenik] and is available under the [Apache License, Version 2.0][apache-license].
131-
13281
[ua-parser]: https://github.com/tobie/ua-parser
13382

13483
[snowplow]: https://github.com/snowplow/snowplow
135-
[snowplow-analytics]: http://snowplowanalytics.com
136-
[donspaulding]: https://github.com/donspaulding
137-
[swijnands]: https://github.com/swijnands
138-
[mkatrenik]: https://github.com/mkatrenik
139-
[iperform]: http://www.iperform.nl/
140-
[lstrojny]: https://github.com/lstrojny
141-
[tsileo]: https://github.com/tsileo
142-
[kreynolds]: https://github.com/kreynolds
143-
[silviucpp]: https://github.com/silviucpp
14484

14585
[piwik]: http://piwik.org
14686
[piwik-search-engines]: https://github.com/piwik/piwik/blob/master/core/DataFiles/SearchEngines.php
14787
[piwik-socials]: https://github.com/piwik/piwik/blob/master/core/DataFiles/Socials.php
14888

149-
[ruby-readme]: https://github.com/snowplow/referer-parser/blob/master/ruby/README.md
150-
[python-readme]: https://github.com/snowplow/referer-parser/blob/master/python/README.md
151-
[nodejs-readme]: https://github.com/snowplow/referer-parser/blob/master/nodejs/README.md
152-
[php-readme]: https://github.com/snowplow/referer-parser/blob/master/php/README.md
153-
[go-readme]: https://github.com/snowplow/referer-parser/blob/master/go/README.md
154-
[erlang-readme]: https://github.com/silviucpp/refererparser/blob/master/README.md
155-
[erlang-repo]: https://github.com/silviucpp/refererparser
15689
[referers-yml]: https://github.com/snowplow/referer-parser/blob/master/resources/referers.yml
15790

15891
[talk-to-us]: https://github.com/snowplow/snowplow/wiki/Talk-to-us
15992

160-
[apache-license]: http://www.apache.org/licenses/LICENSE-2.0
16193
[gpl-license]: http://www.gnu.org/licenses/gpl-3.0.html
162-
[mit-license]: http://opensource.org/licenses/MIT
16394
[cla]: https://github.com/snowplow/snowplow/wiki/CLA

nodejs/.gitignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

nodejs/LICENSE-2.0.txt

Lines changed: 0 additions & 202 deletions
This file was deleted.

nodejs/Makefile

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)