@types/ent
TypeScript definitions for ent
Last updated 5 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/ent 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/ent

Summary

This package contains type definitions for ent (https://github.com/substack/node-ent).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ent.

index.d.ts

// Type definitions for ent 2.2.0
// Project: https://github.com/substack/node-ent
// Definitions by: Rogier Schouten <https://github.com/rogierschouten>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/**
 * Options for the encode() function
 */
export interface EntOpts {
    /**
     * If opts.numeric is false or opts.named is true, encoding will used named codes like &pi;.
     */
    numeric?: boolean | undefined;

    /**
     * If opts.numeric is false or opts.named is true, encoding will used named codes like &pi;.
     */
    named?: boolean | undefined;

    /**
     * If opts.special is set to an Object, the key names will be forced to be encoded (defaults to forcing: <>'"&)
     */
    special?: any;
}

/**
 * Escape unsafe characters in str with html entities. By default, entities are encoded with numeric decimal codes
 */
export function encode(s: string, opts?: EntOpts): string;

/**
 * Convert html entities in str back to raw text.
 */
export function decode(s: string): string;

Additional Details

  • Last updated: Sat, 23 Sep 2023 17:07:22 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Rogier Schouten.

Current Tags

  • 2.2.6                                ...           latest (3 years ago)
  • 2.2.1                                ...           ts2.0 (10 years ago)
  • 2.2.1                                ...           ts2.1 (10 years ago)
  • 2.2.1                                ...           ts2.2 (10 years ago)
  • 2.2.1                                ...           ts2.3 (10 years ago)
  • 2.2.1                                ...           ts2.4 (10 years ago)
  • 2.2.1                                ...           ts2.5 (10 years ago)
  • 2.2.1                                ...           ts2.6 (10 years ago)
  • 2.2.1                                ...           ts2.7 (10 years ago)
  • 2.2.1                                ...           ts2.8 (10 years ago)
  • 2.2.1                                ...           ts2.9 (10 years ago)
  • 2.2.2                                ...           ts3.0 (6 years ago)
  • 2.2.3                                ...           ts3.1 (6 years ago)
  • 2.2.3                                ...           ts3.2 (6 years ago)
  • 2.2.3                                ...           ts3.3 (6 years ago)
  • 2.2.3                                ...           ts3.4 (6 years ago)
  • 2.2.3                                ...           ts3.5 (6 years ago)
  • 2.2.5                                ...           ts3.6 (5 years ago)
  • 2.2.5                                ...           ts3.7 (5 years ago)
  • 2.2.5                                ...           ts3.8 (5 years ago)
  • 2.2.5                                ...           ts3.9 (5 years ago)
  • 2.2.5                                ...           ts4.0 (5 years ago)
  • 2.2.5                                ...           ts4.1 (5 years ago)
  • 2.2.5                                ...           ts4.2 (5 years ago)
  • 2.2.5                                ...           ts4.3 (5 years ago)
  • 2.2.5                                ...           ts4.4 (5 years ago)
  • 2.2.6                                ...           ts4.5 (3 years ago)
  • 2.2.6                                ...           ts4.6 (3 years ago)
  • 2.2.6                                ...           ts4.7 (3 years ago)
  • 2.2.6                                ...           ts4.8 (3 years ago)
  • 2.2.6                                ...           ts4.9 (3 years ago)
  • 2.2.6                                ...           ts5.0 (3 years ago)
  • 2.2.6                                ...           ts5.1 (3 years ago)
  • 2.2.6                                ...           ts5.2 (3 years ago)
  • 2.2.6                                ...           ts5.3 (3 years ago)

6 Versions

  • 2.2.6                                ...           3 years ago
  • 2.2.5                                ...           5 years ago
  • 2.2.4                                ...           5 years ago
  • 2.2.3                                ...           6 years ago
  • 2.2.2                                ...           6 years ago
  • 2.2.1                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |