This commit is contained in:
14
node_modules/stringify-entities/lib/encode-hexadecimal.js
generated
vendored
Normal file
14
node_modules/stringify-entities/lib/encode-hexadecimal.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict'
|
||||
|
||||
var core = require('./core')
|
||||
var assign = require('./constant/assign')
|
||||
var basic = require('./util/format-basic')
|
||||
|
||||
module.exports = encodeHexadecimal
|
||||
|
||||
// Encode special characters in `value` as hexadecimals.
|
||||
function encodeHexadecimal(value, options) {
|
||||
// Note: this file was added in a minor release, so here we can use
|
||||
// `Object.assign`.
|
||||
return core(value, assign({format: basic}, options))
|
||||
}
|
||||
Reference in New Issue
Block a user