CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Mon, 11 Aug 2025 13:37:21 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100213064342
location: https://web.archive.org/web/20100213064342/https://github.com/jfd/match-js
server-timing: captures_list;dur=0.628639, exclusion.robots;dur=0.021698, exclusion.robots.policy;dur=0.010185, esindex;dur=0.013525, cdx.remote;dur=1336.838461, LoadShardBlock;dur=222.341144, PetaboxLoader3.datanode;dur=39.491197, PetaboxLoader3.resolve;dur=104.136361
x-app-server: wwwb-app213
x-ts: 302
x-tr: 1638
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app213; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Mon, 11 Aug 2025 13:37:22 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sat, 13 Feb 2010 06:43:42 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "9c85665fadca2615e4fe644b2f257f15"
x-archive-orig-x-runtime: 125ms
x-archive-orig-content-length: 21715
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 13 Feb 2010 06:43:42 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 30 Oct 2009 16:52:16 GMT", ; rel="prev memento"; datetime="Thu, 07 Jan 2010 06:22:48 GMT", ; rel="memento"; datetime="Sat, 13 Feb 2010 06:43:42 GMT", ; rel="next memento"; datetime="Tue, 16 Mar 2010 16:33:31 GMT", ; rel="last memento"; datetime="Sat, 02 Jan 2021 04:49:26 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_14_20100213061054_crawl103-c/51_14_20100213064320_crawl101.arc.gz
server-timing: captures_list;dur=0.449225, exclusion.robots;dur=0.017153, exclusion.robots.policy;dur=0.008497, esindex;dur=0.011010, cdx.remote;dur=358.912982, LoadShardBlock;dur=149.318213, PetaboxLoader3.datanode;dur=112.885088, PetaboxLoader3.resolve;dur=179.005016, load_resource;dur=179.256981
x-app-server: wwwb-app213
x-ts: 200
x-tr: 737
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
jfd's match-js at master - GitHub
This service is courtesy of Pledgie.
jfd / match-js
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
-
Branches (1)
- master ✓
- Tags (0)
Sending Request…
Enable Donations
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
Pattern matching in javascript — Read more
match-js /
name | age | message | |
---|---|---|---|
![]() |
LICENSE | Tue Jan 12 08:00:07 -0800 2010 | Changed date to 2010 [jfd] |
![]() |
README.md | Fri Dec 04 06:29:00 -0800 2009 | Fixed example in readme [jfd] |
![]() |
TODO | Sat Dec 05 03:13:28 -0800 2009 | - Implement support for custom datatypes. Check! [jfd] |
![]() |
examples/ | Sat Dec 05 03:34:05 -0800 2009 | Did some cleaning in the examples folder [jfd] |
![]() |
match.js | Mon Jan 18 18:13:52 -0800 2010 | Fixed bug where the class constructor resolver... [jfd] |
README.md
match-js
A simple yet powerful pattern matching library for Javascript.
Let you do stuff like this (a WebWorker example):
// Create a filter that jsonify incomming data
var json_filter = Match (
// Match if incomming object has a property called data (of type String)
{ data: String }, function(data) {
return JSON.parse(data);
}
);
// Hook the incoming message event with a Match statement.
onmessage = Match (
// Parse the data through the json filter before further processing.
json_filter,
// Wake-up this worker service.
'wake-up', function() {
post('ping');
},
// Tell main thread that this service is ready for some work
'pong', function() {
post('ready');
},
// Do a calculation against the specified value. Simulate a heavy
// calculation by sending a delayed answer.
['calc', Number, Number], function(no1, no2) {
setTimeout(function() {
post(['calc-done', no1 * no2]);
}, 800);
}
);
For more examples, please navigate to /examples