Debian Codegraph @

debian/umd.1

raw
1 .Dd 10/4/17
2 .Dt umd 1
3 .Sh NAME
4 .Nm umd
5 .Nd Universal Module Definition for use in automated build systems
6 .Sh SYNOPSIS
7 .Nm
8 .Op Fl c
9 name
10 .Sh DESCRIPTION
11 .Nm
12 (Universal Module Definition) is a common pattern used in javascript
13 programming allowing one to write once a loader working in different
14 context (server, browser). This loader is compatible with different
15 API like RequireJS, AMD or CommonJs.
16 .
17 This command provides simple synchronous wrapping of a string, return style module support, CommonJS support
18 and support preventing internal UMDs from conflicting.
19 .
20 Required parameter name is used for exporting module.
21 .Sh OPTIONS
22 .Bl -tag -width -indent
23 .It Fl c, Fl Fl commonJS
24 Use CommonJS module format
25 .El
26 .Pp
27 .Sh EXAMPLES
28 .nf
29 umd -c my-module < my-module.js > my-module.umd
30 cat my-module.js | umd my-module | uglifyjs > my-module.umd.min.js
31 .fi
32 .Sh SEE ALSO
33 .Xr nodejs 1