Skip to content

reads elixir data structure from file as string and converts to elixir data very simple

Notifications You must be signed in to change notification settings

programisti/string_to_elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meta

StringToElixir Reads Elixir data structure from file (for example Keyword List) as string and converts to Elixir data**

Installation

If available in Hex, the package can be installed as:

  1. Add string_to_elixir to your list of dependencies in mix.exs:
def deps do
  [{:elixir_to_string, "~> 0.1.1"}]
end
  1. Example of usage qwe.txt content
  [
    my_config: [
      key_value: "BA"
    ]
  ]

First parameter is a file name, second Module name, third function name

    StringToElixir("/home/zaali/qwe.txt", MyNewUndefinedModule, func_name)
    MyNewUndefinedModule.func_name == [my_config: [key_value: "BA"]]

About

reads elixir data structure from file as string and converts to elixir data very simple

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages