Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9124972
index.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
880 B
Subscribers
None
index.js
View Options
"use strict"
;
var
iterateObject
=
require
(
"iterate-object"
),
regexEscape
=
require
(
"regex-escape"
),
he
=
require
(
"he"
);
//const DECODE_MAP = require("./character-map")
//const ENCODE_MAP = {};
//
//iterateObject(DECODE_MAP, (value, name) => {
// ENCODE_MAP[value] = name;
//});
module
.
exports
=
{
/**
* decode
* Decodes an encoded string.
*
* @name decode
* @function
* @param {String} input The encoded string.
* @returns {String} The decoded string.
*/
decode
:
function
decode
(
input
)
{
return
he
.
decode
(
input
);
}
/**
* encode
* Encodes a string.
*
* @name encode
* @function
* @param {String} input The string that must be encoded.
* @returns {String} The encoded string.
*/
,
encode
:
function
encode
(
input
)
{
return
he
.
encode
(
input
);
}
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 21, 7:50 PM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3310721
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment