1.2.28 • Published 17 days ago

@thi.ng/expose v1.2.28

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
17 days ago

expose

npm version npm downloads Twitter Follow

This project is part of the @thi.ng/umbrella monorepo.

About

Conditional global variable exposition.

This package provides a single function exposeGlobal() to expose a variable in the global scope (e.g. for development/debugging purposes). It's behavior is controled by the UMBRELLA_GLOBALS or SNOWPACK_PUBLIC_UMBRELLA_GLOBALS environment variables - if either is set (to a non-empty string) the function will always be enabled. Otherwise (by default), exposeGlobal() is disabled for production builds, i.e. if process.env.NODE_ENV === "production".

Status

STABLE - used in production

Search or submit any issues for this package

Installation

yarn add @thi.ng/expose

ES module import:

<script type="module" src="https://cdn.skypack.dev/@thi.ng/expose"></script>

Skypack documentation

For Node.js REPL:

# with flag only for < v16
node --experimental-repl-await

> const expose = await import("@thi.ng/expose");

Package sizes (gzipped, pre-treeshake): ESM: 243 bytes

Dependencies

None

Usage examples

Several demos in this repo's /examples directory are using this package.

A selection:

ScreenshotDescriptionLive demoSource
Interactive grid generator, SVG generation & export, undo/redo supportDemoSource
rstream based spreadsheet w/ S-expression formula DSLDemoSource
Minimal shader graph developed during livestream #2DemoSource
Triple store query results & sortable tableDemoSource

API

Generated API docs

Authors

Karsten Schmidt

If this project contributes to an academic publication, please cite it as:

@misc{thing-expose,
  title = "@thi.ng/expose",
  author = "Karsten Schmidt",
  note = "https://thi.ng/expose",
  year = 2016
}

License

© 2016 - 2021 Karsten Schmidt // Apache Software License 2.0

1.2.28

17 days ago

1.2.27

19 days ago

1.2.26

28 days ago

1.2.25

1 month ago

1.2.24

1 month ago

1.2.23

2 months ago

1.2.22

2 months ago

1.2.21

2 months ago

1.2.20

3 months ago

1.2.19

3 months ago

1.2.18

3 months ago

1.2.16

3 months ago

1.2.17

3 months ago

1.2.15

3 months ago

1.2.13

4 months ago

1.2.12

4 months ago

1.2.11

4 months ago

1.2.10

5 months ago

1.2.9

5 months ago

1.2.8

5 months ago

1.2.7

5 months ago

1.2.6

5 months ago

1.2.0

7 months ago

1.2.5

6 months ago

1.2.4

6 months ago

1.2.2

6 months ago

1.2.1

7 months ago

1.1.34

9 months ago

1.1.33

9 months ago

1.1.31

9 months ago

1.1.37

7 months ago

1.1.36

9 months ago

1.1.35

9 months ago

1.1.30

11 months ago

1.1.29

12 months ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.21

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.20

1 year ago

1.1.12

2 years ago

1.1.16

1 year ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.17

1 year ago

1.1.11

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.10

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.6

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

0.1.0

3 years ago