UNPKG

react-native-mmkv-storage

Version:

This library aims to provide a fast & reliable solution for you data storage needs in react-native apps. It uses [MMKV](https://github.com/Tencent/MMKV) by Tencent under the hood on Android and iOS both that is used by their WeChat app(more than 1 Billion

34 lines (31 loc) 933 B
const bColors = { HEADER: '\033[95m', OKBLUE: '\033[94m', OKGREEN: '\033[92m', WARNING: '\033[93m', FAIL: '\033[91m', ENDC: '\033[0m', BOLD: '\033[1m', UNDERLINE: '\033[4m', }; const log = (text) => process.stdout.write(text); const logn = (text) => process.stdout.write(text + '\n'); const warn = (text) => process.stdout.write(`${bColors.WARNING}${text}${bColors.ENDC}`); const warnn = (text) => warn(text + '\n'); const error = (text) => process.stdout.write(`${bColors.FAIL}${text}${bColors.ENDC}`); const errorn = (text) => error(text + '\n'); const info = (text) => process.stdout.write(`${bColors.OKGREEN}${text}${bColors.ENDC}`); const infon = (text) => info(text + '\n'); const debug = (text) => process.stdout.write(`${bColors.OKBLUE}${text}${bColors.ENDC}`); const debugn = (text) => debug(text + '\n'); module.exports = { log, logn, warn, warnn, info, infon, debug, debugn, errorn, };