mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
10 lines
220 B
TypeScript
10 lines
220 B
TypeScript
|
|
import ent = require("ent");
|
|
|
|
// encode
|
|
const s: string = ent.encode("foo");
|
|
const s2: string = ent.encode("foo", { numeric: true, named: true, special: { foo: true } });
|
|
|
|
// decode
|
|
const t: string = ent.decode("foo");
|