/metapost-fun

Post meta data in a directory tree to an endpoint (sample code)

Primary LanguageJavaScript

metapost

Post meta data in a directory tree to an endpoint

This is a SAMPLE.

Usage

git clone https://github.com/ecman/metapost-fun.git
cd ./metapost-fun
npm install
npm start

Output:

Listening
Responding to: 127.0.0.1
Post meta: data/values/0003/0003-I.meta -- Status: 200
Responding to: 127.0.0.1
Post meta: data/values/0003/0003-H.meta -- Status: 200
Responding to: 127.0.0.1
Post meta: data/values/0003/0003-G.meta -- Status: 200
Responding to: 127.0.0.1
Post meta: data/values/0002/0002-F.meta -- Status: 200
Responding to: 127.0.0.1
Post meta: data/values/0002/0002-E.meta -- Status: 200
Responding to: 127.0.0.1
Post meta: data/values/0002/0002-D.meta -- Status: 200
Responding to: 127.0.0.1
Post meta: data/values/0001/0001-C.meta -- Status: 200
Responding to: 127.0.0.1
Post meta: data/values/0001/0001-B.meta -- Status: 200
Responding to: 127.0.0.1
Post meta: data/values/0001/0001-A.meta -- Status: 200
No requests for 5 seconds; exiting.