Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zkochan/write-script

Writes a script tag to the document.
https://github.com/zkochan/write-script

Last synced: 10 days ago
JSON representation

Writes a script tag to the document.

Awesome Lists containing this project

README

        

# write-script

Writes a script tag to the document if the document is loading or inserts a
script tag in case the document finished loading.

[![Dependency Status](https://david-dm.org/zkochan/write-script/status.svg?style=flat)](https://david-dm.org/zkochan/write-script)
[![Build Status](https://travis-ci.org/zkochan/write-script.svg?branch=master)](https://travis-ci.org/zkochan/write-script)
[![npm version](https://badge.fury.io/js/write-script.svg)](http://badge.fury.io/js/write-script)

## Installation

```
npm i --save write-script
```

## Usage

```js
var writeScript = require('write-script');

writeScript('http://foo.com/bar.js', {
async: true
});
```

## License

MIT