# promise-create-script

> Creates script and returns a promise.

Latest version **2.0.2** (published 2017-08-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install promise-create-script
pnpm add promise-create-script
yarn add promise-create-script
bun add promise-create-script
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2017-08-15 |
| First published | 2017-08-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | kahwee |
| Keywords | script, promise, create-script |

## Links

- npm: https://www.npmjs.com/package/promise-create-script
- Repository: https://github.com/kahwee/promise-create-script
- Homepage: https://github.com/kahwee/promise-create-script#readme
- Issues: https://github.com/kahwee/promise-create-script/issues
- npm.io page: https://npm.io/package/promise-create-script

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 2.0.2 (latest) — 2017-08-15
- 2.0.0 — 2017-08-15
- 1.0.0 — 2017-08-06

## README

# promise-create-script

Creates script and returns a promise.

[![Build Status](https://travis-ci.org/kahwee/promise-create-script.svg?branch=master)](https://travis-ci.org/kahwee/promise-create-script)
[![npm version](https://badge.fury.io/js/promise-create-script.svg)](https://badge.fury.io/js/promise-create-script)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

## Installing with npm

```sh
npm i --save promise-create-script
```

## Usage

```js
const createScript = require('promise-create-script')
const uri = 'http://code.jquery.com/jquery-3.2.1.slim.min.js'
createScript(document.body, uri).then(script => {
	// This returns the script tag
	console.log(script.src)
}).catch(err => {
	// Oops, some ting wong
	console.error(err)
})
```

## License

MIT

---
_Source: https://npm.io/package/promise-create-script · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
