Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/zkochan/write-script
- Owner: zkochan
- License: mit
- Created: 2015-06-17T21:21:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-25T15:01:01.000Z (about 9 years ago)
- Last Synced: 2024-11-25T08:43:55.814Z (28 days ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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