aswi2020vldc-gitlab/templetes/node_modules/pbkdf2/lib/default-encoding.js @ cfe48a96
1 | 3a515b92 | cagy | var defaultEncoding |
---|---|---|---|
2 | /* istanbul ignore next */
|
||
3 | if (process.browser) { |
||
4 | defaultEncoding = 'utf-8' |
||
5 | } else { |
||
6 | var pVersionMajor = parseInt(process.version.split('.')[0].slice(1), 10) |
||
7 | |||
8 | defaultEncoding = pVersionMajor >= 6 ? 'utf-8' : 'binary' |
||
9 | }
|
||
10 | module.exports = defaultEncoding |