# angular-x2js-wrapper

> X2JS angularjs wrapper

Latest version **1.0.4** (published 2022-06-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-x2js-wrapper
pnpm add angular-x2js-wrapper
yarn add angular-x2js-wrapper
bun add angular-x2js-wrapper
```

## 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 | 1.0.4 |
| Published | 2022-06-04 |
| First published | 2021-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 12.1 KB |
| Known vulnerabilities | 0 (+10 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | FrequentlyMissedDeadlines |
| Maintainers | frequentlymisseddeadlines |
| Keywords | x2js, xml, parser, angular, AngularJS |

## Links

- npm: https://www.npmjs.com/package/angular-x2js-wrapper
- Repository: https://github.com/FrequentlyMissedDeadlines/angular-x2js-wrapper
- Issues: https://github.com/FrequentlyMissedDeadlines/angular-x2js-wrapper/issues
- npm.io page: https://npm.io/package/angular-x2js-wrapper

## Dependencies (2)

- [x2js](https://npm.io/package/x2js.md) ^3.4.3
- [angular](https://npm.io/package/angular.md) ^1.8.2

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2022-06-04
- 1.0.3 — 2022-06-04
- 1.0.2 — 2021-07-10
- 1.0.1 — 2021-01-02
- 1.0.0 — 2021-01-02

## README

# angular-x2js-wrapper

[![Version](https://img.shields.io/npm/v/angular-x2js-wrapper)](https://www.npmjs.com/package/angular-x2js-wrapper)
![build](https://github.com/FrequentlyMissedDeadlines/angular-x2js-wrapper/workflows/build/badge.svg)
![release](https://github.com/FrequentlyMissedDeadlines/angular-x2js-wrapper/workflows/release/badge.svg)
[![Downloads (total)](https://img.shields.io/npm/dt/angular-x2js-wrapper)](https://www.npmjs.com/package/angular-x2js-wrapper)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

[![](https://nodei.co/npm/angular-x2js-wrapper.png?downloads=true&stars=true)](https://www.npmjs.com/package/angular-x2js-wrapper)


I made this repo because I had troubles with X2JS in a webpack/angularjs/Meteor based application.
If you also face this kind of issues using [angular-x2js (seems no more maintained)](https://www.npmjs.com/package/angular-x2js):

```
ReferenceError: X2JS is not defined
```

**The solution is to replace the dependency on `angular-x2js` by `angular-x2js-wrapper` in your `package.json` file.**

And update Angular dependency injection accordingly:
```javascript
angular.module('your_module_name', ['fmd.x2js'])
```

Actually `angular-x2js` works only if `X2JS` variable is defined directly in `window`.

On the other hand, `angular-x2js-wrapper` doesn't require you to manually handle external dependencies, it's working out of the box. Enjoy it! 🎉

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