National Electrical Code (NEC) is a set of regularly updated standards for the safe installation of electric wiring in the Americas. First published in 1897, the NEC is updated once every three years.