/
EXAMPLE-META-DATA.json
279 lines (279 loc) · 11.6 KB
/
EXAMPLE-META-DATA.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
{
"_id": "altr",
"_rev": "13-51f35b7d481978efdd85d1e3737f4d0f",
"name": "altr",
"description": "README.md",
"dist-tags": {
"latest": "0.0.6"
},
"versions": {
"0.0.0": {
"name": "altr",
"version": "0.0.0",
"description": "README.md",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "beefy index.js"
},
"repository": "",
"author": "",
"license": "MIT",
"dependencies": {
"through": "~2.3.4"
},
"readme": "template\n========\n\na simple template engine that generates a document fragment that will update the correct nodes when its source data changes\n",
"readmeFilename": "README.md",
"_id": "altr@0.0.0",
"dist": {
"shasum": "b654eb57a2bfbdcd74cdf242c5d90bd44f8ab770",
"tarball": "http://registry.npmjs.org/altr/-/altr-0.0.0.tgz"
},
"_from": ".",
"_npmVersion": "1.3.11",
"_npmUser": {
"name": "hayes",
"email": "michael@hayes.io"
},
"maintainers": [
{
"name": "hayes",
"email": "michael@hayes.io"
}
],
"directories": {}
},
"0.0.1": {
"name": "altr",
"version": "0.0.1",
"description": "README.md",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "beefy index.js"
},
"repository": {
"type": "git",
"url": "http://github.com/mghayes/tempalte"
},
"author": "",
"license": "MIT",
"dependencies": {
"through": "~2.3.4"
},
"readme": "template\n========\n\na simple template engine that generates a document fragment that will update the correct nodes when its source data changes\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/mghayes/tempalte/issues"
},
"_id": "altr@0.0.1",
"dist": {
"shasum": "c16e07531d435829da8e84bbeb690fc2411a6c41",
"tarball": "http://registry.npmjs.org/altr/-/altr-0.0.1.tgz"
},
"_from": ".",
"_npmVersion": "1.3.11",
"_npmUser": {
"name": "hayes",
"email": "michael@hayes.io"
},
"maintainers": [
{
"name": "hayes",
"email": "michael@hayes.io"
}
],
"directories": {}
},
"0.0.2": {
"name": "altr",
"version": "0.0.2",
"description": "README.md",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "beefy index.js"
},
"repository": {
"type": "git",
"url": "http://github.com/mghayes/tempalte"
},
"author": "",
"license": "MIT",
"dependencies": {
"through": "~2.3.4"
},
"readme": "template\n========\n\na simple template engine that generates a document fragment that will update the correct nodes when its source data changes\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/mghayes/tempalte/issues"
},
"_id": "altr@0.0.2",
"dist": {
"shasum": "139ddf57a402f7278e17051ba2d1eade6463f022",
"tarball": "http://registry.npmjs.org/altr/-/altr-0.0.2.tgz"
},
"_from": ".",
"_npmVersion": "1.3.11",
"_npmUser": {
"name": "hayes",
"email": "michael@hayes.io"
},
"maintainers": [
{
"name": "hayes",
"email": "michael@hayes.io"
}
],
"directories": {}
},
"0.0.4": {
"name": "altr",
"version": "0.0.4",
"description": "README.md",
"main": "lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "beefy index.js"
},
"repository": {
"type": "git",
"url": "http://github.com/mghayes/tempalte"
},
"author": "",
"license": "MIT",
"dependencies": {
"through": "~2.3.4"
},
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/mghayes/tempalte/issues"
},
"readme": "a simple template engine that generates a document fragment that will update the correct nodes when its source data changes\n",
"_id": "altr@0.0.4",
"dist": {
"shasum": "592d103f501fa5b5f940062787f78afc89869ffe",
"tarball": "http://registry.npmjs.org/altr/-/altr-0.0.4.tgz"
},
"_from": ".",
"_npmVersion": "1.3.11",
"_npmUser": {
"name": "hayes",
"email": "michael@hayes.io"
},
"maintainers": [
{
"name": "hayes",
"email": "michael@hayes.io"
}
],
"directories": {}
},
"0.0.5": {
"name": "altr",
"version": "0.0.5",
"description": "README.md",
"main": "lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "beefy index.js"
},
"repository": {
"type": "git",
"url": "http://github.com/mghayes/altr"
},
"author": "",
"license": "MIT",
"dependencies": {
"through": "~2.3.4"
},
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/mghayes/altr/issues"
},
"readme": "A simple dom aware templating enginge that only updates what it needs.\n\n##install:\n`npm install altr`\n\n#Ussage:\n\njs: \n```\nvar altr = require('altr')\n\nvar el = document.getElementById('root')\n , template = alter(el)\n \ntemplate.write({\n name: \"world\"\n , list: [1,2,3]\n})\n\n//later\ntemplate.write(new_state)\n\n```\n\nhtml:\n```\n<div id=\"root\">\n <h1>hello, {{ name }}!</h1>\n <ul altr-for=\"item in list\">\n <li altr-value=\"item\"></li>\n </ul>\n</div>\n```\n\n##Tags:\naltr currently supports these tags: `if`, `for`, `value`, `html` and more will be added soon\n\nand can be used by adding an altr attribute to an element eg. `<div altr-html=\"obj.my_html\">`\nthat element will now update its contents every time you write to the template.\n\n##Values:\nYou can also insert values into text nodes ussing the following syntax (attrubutes almost work)\n`{{ dot.path.to.value }}`\n\n##Filters:\nI have not added any filters yet, but the api is functional. `{{ user.createdAt|format }}` or `<h1 altr-value=\"user.name|capitalize\"></h1>`\nFilters are through streams, so they can be used to do async stuff, or update values over time (eg. a countdown or transition)\n\n",
"_id": "altr@0.0.5",
"dist": {
"shasum": "45dfdb11cade169183fd442cef5a68e843a5b0ce",
"tarball": "http://registry.npmjs.org/altr/-/altr-0.0.5.tgz"
},
"_from": ".",
"_npmVersion": "1.3.11",
"_npmUser": {
"name": "hayes",
"email": "michael@hayes.io"
},
"maintainers": [
{
"name": "hayes",
"email": "michael@hayes.io"
}
],
"directories": {}
},
"0.0.6": {
"name": "altr",
"version": "0.0.6",
"description": "README.md",
"main": "lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "beefy index.js"
},
"repository": {
"type": "git",
"url": "http://github.com/mghayes/altr"
},
"author": "",
"license": "MIT",
"dependencies": {
"through": "~2.3.4"
},
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/mghayes/altr/issues"
},
"readme": "A simple dom aware templating enginge that only updates what it needs.\n\n##install:\n`npm install altr`\n\n#Ussage:\n\nthis is still a work in progress so for now it is expected to be used in code that get browserified.\n\njs: \n```\nvar altr = require('altr')\n\nvar el = document.getElementById('root')\n , template = alter(el)\n \ntemplate.write({\n name: \"world\"\n , list: [1,2,3]\n})\n\n//later\ntemplate.write(new_state)\n\n```\n\nhtml:\n```\n<div id=\"root\">\n <h1>hello, {{ name }}!</h1>\n <ul altr-for=\"item in list\">\n <li altr-value=\"item\"></li>\n </ul>\n</div>\n```\n\n##Tags:\naltr currently supports these tags: `if`, `for`, `value`, `html`, `attr` and more will be added soon\n\nand can be used by adding an altr attribute to an element eg. `<div altr-html=\"obj.my_html\">`\nthat element will now update its contents every time you write to the template.\n\n##Values:\nYou can also insert values into text nodes or non altr-* attrubutes ussing the following syntax\n`{{ dot.path.to.value }}`\n\n##Filters:\nI have only written and add filter so far, but the api is functional. `{{ num|add(5) }}`\nFilters are through streams, so they can be used to do async stuff, or update values over time (eg. a countdown or transition)\n\n",
"_id": "altr@0.0.6",
"dist": {
"shasum": "fe2508bae141833a8da899fe5b06787806c7d927",
"tarball": "http://registry.npmjs.org/altr/-/altr-0.0.6.tgz"
},
"_from": ".",
"_npmVersion": "1.3.11",
"_npmUser": {
"name": "hayes",
"email": "michael@hayes.io"
},
"maintainers": [
{
"name": "hayes",
"email": "michael@hayes.io"
}
],
"directories": {}
}
},
"readme": "template\n========\n\na simple template engine that generates a document fragment that will update the correct nodes when its source data changes\n",
"maintainers": [
{
"name": "hayes",
"email": "michael@hayes.io"
}
],
"time": {
"modified": "2013-12-26T21:46:07.037Z",
"created": "2013-11-19T17:09:45.786Z",
"0.0.0": "2013-11-19T17:09:46.971Z",
"0.0.1": "2013-11-20T18:22:45.414Z",
"0.0.2": "2013-11-28T03:12:59.315Z",
"0.0.4": "2013-12-19T19:36:42.939Z",
"0.0.5": "2013-12-19T20:09:36.978Z",
"0.0.6": "2013-12-26T21:46:07.037Z"
},
"repository": {
"type": "git",
"url": "http://github.com/mghayes/altr"
},
"_attachments": {}
}