mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Updated react-native-dotenv Updated react-native-dotenv * Fixed errors fixed linting error * Added Convert String Added type definitions for convert string * Fixed Errors Fixed linting errors. * Fixed bugs Fixed bugs with incorrect exports. * Fixed test error Fixed error thrown my azure devops. * Updated after code review Updated tsconfig to change noImplicitAny to false. * Updated tsconfig Updated tsconfig. * Added Changess * Removed changes to react-native-dotenv Removed changes from dot-env. * react-native-dotenv This library should not be updated, this is on the wrong branch.
8 lines
283 B
TypeScript
8 lines
283 B
TypeScript
import { convertString } from "convert-string";
|
|
|
|
const utf8Bytes = convertString.UTF8.stringToBytes("Test ♥");
|
|
const utf8Message = convertString.UTF8.bytesToString(utf8Bytes);
|
|
|
|
const bytes = convertString.stringToBytes("Hello");
|
|
const message = convertString.bytesToString(bytes);
|