string-converters
Version:
A utility library for converting data types and working with arrays. Provides converters for boolean, number, and string values, along with array conversion functions and support for values with predefined options.
1 lines • 449 B
Source Map (JSON)
{"version":3,"sources":["../src/stringConverter/index.ts"],"names":[],"mappings":";AAAA,OAAO,cAAc;AAMrB,IAAM,kBAAqC;AAAA,EACzC,OAAO;AAAA,EACP,WAAW;AACb;AAEA,IAAO,0BAAQ","sourcesContent":["import identity from \"lodash.identity\";\nimport { Converter } from \"../types\";\n\n/**\n * Converter for string values.\n */\nconst stringConverter: Converter<string> = {\n parse: identity,\n stringify: identity,\n};\n\nexport default stringConverter;\n"]}