@ull-esit-dsi-1617/scapegoat

1.3.14 • Public • Published

Scapegoat

npm version

(for a badge like this see https://badge.fury.io/for/js)

A minimal node module providing utility methods to escape and unescape HTML entities

Installation

  npm install @ull-esit-dsi-1617/scapegoat --save

Usage

  var scapegoat = require('@ull-esit-dsi-1617/scapegoat'),
      escape = scapegoat.escape,
      unescape = scapegoat.unescape;

  var html = '<h1>Hello World</h1>',
      escaped = escape(html),
      unescaped = unescape(escaped);

  console.log('html', html, 'escaped', escaped, 'unescaped', unescaped);

Tests

   npm test

See also Repo ULL-ESIT-DSI-1617/prueba-scapegoat to test this module

See also the main repo made of this repo and the prueba repo

API Documents

See Documentation at https://ull-esit-dsi-1617.github.io/scapegoat/

To generate the docs we use documentation.js:

   npm run doc

Install $ npm install -g documentation

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Release History

  • 1.0.3 Scopes and API documentation
  • 1.0.0 Refactor to avoid double unescape and to use npm scripts instead of makefile. Also add link to associated blog post.
  • 0.1.0 Initial release

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i @ull-esit-dsi-1617/scapegoat

    Weekly Downloads

    1

    Version

    1.3.14

    License

    none

    Unpacked Size

    1.59 MB

    Total Files

    37

    Last publish

    Collaborators

    • crguezl
    • nestor-gm
    • ivan-ga
    • alu0100200393
    • alu0100813272
    • alu0100816167
    • alu0100821390
    • alu0100825510
    • casiano