be a danger to vs peril

be a danger to

peril

verb
  • To cause to be in danger; to imperil; to risk. 

noun
  • A situation of serious and immediate danger. 

  • An event which causes a loss, or the risk of a specific such event. 

  • Something that causes, contains, or presents danger. 

How often have the words be a danger to and peril occurred in a corpus of books? (source: Google Ngram Viewer )