converter/src/app/nativelibrarywrapper.service.ts
Manuel Friedli 1386babee5 Fixed conversions that depend on pure JS modules
That is:
- quoted printable
- punycode
- (utf8), dependency of quoted printable
2017-03-14 23:36:39 +01:00

17 lines
484 B
TypeScript

import {Injectable} from "@angular/core";
import {Punycode} from "./punycode";
import {Utf8} from "./utf8";
import {QuotedPrintable} from "./quotedprintable";
@Injectable()
export class NativeLibraryWrapperService {
public utf8:Utf8;
public quotedPrintable:QuotedPrintable;
public punycode:Punycode;
constructor() {
this.utf8 = require("utf8");
this.quotedPrintable = require("quoted-printable");
this.punycode = require("punycode");
}
}