forked from pattern-lab/patternlab-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.handlebars
More file actions
60 lines (46 loc) · 1.4 KB
/
api.handlebars
File metadata and controls
60 lines (46 loc) · 1.4 KB
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
# Pattern Lab Node API
[](https://gitter.im/pattern-lab/node)
## [Installation](https://github.com/pattern-lab/patternlab-node#installation)
## Usage
`patternlab-node` can be required within any Node environment, taking in a configuration file at instantiation.
``` javascript
const config = require('./patternlab-config.json');
const patternlab = require('patternlab-node')(config);
```
## Events
Pattern Lab emits numerous [events](./events.md).
## Functions
Many of these functions are exposed to users within [Editions](https://github.com/pattern-lab/patternlab-node#editions), but [direct consumption](https://github.com/pattern-lab/patternlab-node#direct-consumption) is also encouraged.
{{#orphans ~}}
{{>heading-indent}}{{>sig-name}}
{{>deprecated~}}
{{>description~}}
{{>summary~}}
{{>augments~}}
{{>implements~}}
{{>mixes~}}
{{>default~}}
{{>chainable~}}
{{>overrides~}}
{{>returns~}}
{{>category~}}
{{>throws~}}
{{>fires~}}
{{>this~}}
{{>access~}}
{{>readOnly~}}
{{>requires~}}
{{>customTags~}}
{{>see~}}
{{>since~}}
{{>version~}}
{{>authors~}}
{{>license~}}
{{>copyright~}}
{{>todo~}}
{{>params~}}
{{>properties~}}
{{>examples~}}
{{/orphans~}}
* * *
[Pattern Lab](http://patternlab.io) Node is [MIT Licensed](https://github.com/pattern-lab/patternlab-node/blob/master/LICENSE)