stampit API
  • Introduction
  • Essentials
    • What is a Stamp
    • Installation
    • Specification
      • Merging algorithm
      • Object creation internals
    • FAQ
  • API
    • Quick start
    • Basics
    • Methods
    • Properties
    • Deep properties
    • Initializers
    • Static properties
    • Static deep properties
    • Configuration
    • Deep configuration
    • Composers
    • Property descriptors
    • Static property descriptors
    • Name
  • Ecosystem
    • Ecosystem Overview
    • @stamp/collision
    • @stamp/required
    • @stamp/privatize
    • @stamp/named (DEPRECATED)
    • @stamp/instanceof
Powered by GitBook
On this page
  • Browser usage
  • NPM
  • Bower
  • Direct script
  • Compatibility note
  • Node.js usage
  • Compatibility note
  1. Essentials

Installation

PreviousWhat is a StampNextSpecification

Last updated 5 years ago

Browser usage

For browsers it is recommended to use the module. It's a small (1.5KB gzipped) and browser optimized. Also, it will work in other JavaScript environments and ES5-compatible engines.

NPM

npm i -S stampit

Bower

bower install stampit=https://npmcdn.com/stampit@4
bower install stampit=https://unpkg.com/stampit@4
bower install stampit=https://cdn.jsdelivr.net/npm/stampit@4

Direct script

Use any of the links above. For example:

<script src="https://cdn.jsdelivr.net/npm/stampit@4"></script>

The above will automatically install stampit to window.stampit.

In a or stampit would install itself to self.stampit.

Compatibility note

The stampit v4 is compatible with any EcmaScript 5 environment, including IE9.

Node.js usage

npm i -S @stamp/it

Compatibility note

The detailed Release Notes are always available at the page.

For node.js it is recommended to use the module. Its source code is more readable than stampit module, so you can easily debug its internals if needed. In addition, it will work in any other ES5-compatible JavaScript environments.

The @stamp/it is compatible with any EcmaScript 5 environment, including Node.js v0.1. However, some of the modules are ES6 only.

The release notes can be found on the .

stampit
WebWorker
ServiceWorker
GitHub Releases
@stamp/it
Ecosystem
project page