Hollywood director JJ Abrams has granted the wish of terminally-ill fan by giving him a private screening of the forthcoming Star Trek film.

The cancer-suffer known only as Dan was treated to an advance viewing of Star Trek into Darkness , following a successful internet campaign by his friends and family.

The New-York film fan was recently given just weeks to live by doctors after being diagnosed with leukaemia and liver cancer and apparently wanted nothing more than to see the follow up to Abrams' successful 2009 re-boot of the sci-fi franchise.

As his condition deteriorated, his friends and family decided to post his story on Reddit hoping for an "amazing act of generosity and kindness."

Abram's responded to the campaign by inviting Dan and his wife to a special screening of an unfinished version of the movie ahead of its official release on 7 May.

Dan's wife later took to Reddit to reveal how touched he was by the generous gesture and thanked their supporters.

"Hi everyone, it's Daniel's wife, we are of course sworn to secrecy, but we are officially allowed to say we saw it and we enjoyed it immensely as a film and as a gesture... Also, it was truly amazing that a filmmaker so secretive as JJ Abrams was kind enough to show this to us.

"It is also so wonderful for his friends and his family to finally hear some good news from us, they know how important [the] film is to Daniel and could not think of a better way to please him. So this gesture really has brought a lot of smiles all around.

"It was a wonderful thing to see with Daniel and a wonderful thing to see Daniel enjoy - Making someone as ill as he is smile for any length of time really makes a difference. (At this point making me smile is good too).

"We were so touched when [Abrams] was concerned that we wouldn't 100% enjoy the screening as it's still being worked on... Be assured we enjoyed it 110%!"