anchor.diff:        resolve_package_file(filelib:is_file(PackageFile), PackageFile)
     end;
   resolve_package(false, Path) ->
  -  io:format("ResolvePackage false~n"),
     resolve_index(filelib:is_file(filename:join(Path, "index.js")), Path).
   
   resolve_package_file(true, Path) ->
  
positive.code:   resolve_package(filelib:is_file(filename:join(Path, "package.json")), Path).
  
  resolve_package(true, Path) ->
    io:format("ResolvePackage true~n"),
    {ok, Content} = file:read_file(filename:join(Path, "package.json")),
    {struct, Json} = mochijson2:decode(Content),
    io:format("Json: ~p~n", [Json]),
    case proplists:get_value(<<"main">>, Json) of
      undefined -> {error, invalid_package};
      File ->
  
negative.code:   {error, not_found}.
  
  resolve_file(Path) ->
    resolve_file(filename:extension(Path), Path).
  
  resolve_file([], Path) ->
  