firest commit
This commit is contained in:
+40
@@ -0,0 +1,40 @@
|
||||
[](https://www.npmjs.org/package/typical)
|
||||
[](https://www.npmjs.org/package/typical)
|
||||
[](https://travis-ci.org/75lb/typical)
|
||||
[](https://coveralls.io/github/75lb/typical?branch=master)
|
||||
[](https://david-dm.org/75lb/typical)
|
||||
[](https://github.com/feross/standard)
|
||||
|
||||
{{>main}}
|
||||
|
||||
## Load anywhere
|
||||
|
||||
This library is compatible with Node.js, the Web and any style of module loader. It can be loaded anywhere, natively without transpilation.
|
||||
|
||||
Node.js:
|
||||
|
||||
```js
|
||||
const typical = require('typical')
|
||||
```
|
||||
|
||||
Within Node.js with ECMAScript Module support enabled:
|
||||
|
||||
```js
|
||||
import typical from 'typical'
|
||||
```
|
||||
|
||||
Within a modern browser ECMAScript Module:
|
||||
|
||||
```js
|
||||
import typical from './node_modules/typical/index.mjs'
|
||||
```
|
||||
|
||||
Old browser (adds `window.typical`):
|
||||
|
||||
```html
|
||||
<script nomodule src="./node_modules/typical/dist/index.js"></script>
|
||||
```
|
||||
|
||||
* * *
|
||||
|
||||
© 2014-19 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).
|
||||
Reference in New Issue
Block a user