# script-utils

> script utils for creating script element and adding/removing them from

Latest version **0.0.3** (published 2013-12-28) · 0 weekly downloads

## Install

```sh
npm install script-utils
pnpm add script-utils
yarn add script-utils
bun add script-utils
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2013-12-28 |
| First published | 2013-12-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Olivier Scherrer |
| Maintainers | podefr |
| Keywords | script, utils |

## Links

- npm: https://www.npmjs.com/package/script-utils
- Repository: git@github.com:podefr/script
- Homepage: https://github.com/podefr/script
- Issues: https://github.com/podefr/script/issues
- npm.io page: https://npm.io/package/script-utils

## 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

- 0.0.3 (latest) — 2013-12-28
- 0.0.2 — 2013-12-24
- 0.0.1 — 2013-12-22

## README

script
======

Script utils to create script elements, add and remove them from &lt;head&gt;

Installation
=============

```bash
npm install script-utils
```

In the browser:
===============

```html
&lt;script src="script-utils-browser"&gt;&lt;/script&gt;
```

Usage
=====

```js
var script = require("script-utils");

// create a new script element with an onload callback
var newScript = script.create("source/to/file", function onload() {
	// do something when script is loaded;
}, this);

// Append the script to &lt;head&gt;
script.append(newScript);

// Remove script from &lt;head&gt;
script.remove(newScript);

```

Licence
=======

MIT

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