File: umd.1

package info (click to toggle)
node-umd 3.0.3%2Bds%2B~3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 208 kB
  • sloc: javascript: 229; makefile: 32; sh: 13
file content (33 lines) | stat: -rw-r--r-- 881 bytes parent folder | download | duplicates (3)
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
.Dd 10/4/17
.Dt umd 1
.Sh NAME
.Nm umd
.Nd Universal Module Definition for use in automated build systems
.Sh SYNOPSIS
.Nm
.Op Fl c
name
.Sh DESCRIPTION
.Nm
(Universal Module Definition) is a common pattern used in javascript
programming allowing one to write once a loader working in different
context (server, browser). This loader is compatible with different
API like RequireJS, AMD  or CommonJs.
.
This command provides simple synchronous wrapping of a string, return style module support, CommonJS support
and support preventing internal UMDs from conflicting.
.
Required parameter name is used for exporting module.
.Sh OPTIONS
.Bl -tag -width -indent
.It Fl c, Fl Fl commonJS
Use CommonJS module format
.El
.Pp
.Sh EXAMPLES
.nf
umd -c my-module < my-module.js > my-module.umd
cat my-module.js | umd my-module | uglifyjs > my-module.umd.min.js
.fi
.Sh SEE ALSO
.Xr nodejs 1