UNPKG

react-native-cert-pinner

Version:

For React Native, pins TLS connections to specific trusted certificates' public keys

23 lines (17 loc) 339 B
const chalk = require('chalk'); const Log = { info: (msg) => { console.log(msg); }, warn: (msg) => { console.log(chalk.yellowBright(msg)); }, error: (msg) => { console.error(chalk.redBright(msg)); }, fatal: (msg) => { console.error(chalk.redBright(msg)); process.exit(1) } }; module.exports = Log;