nic-id module provides the NicaraguanId
class which holds the proper data required by a Nicaraguan ID document.
This project was created as a playground for new ES6 classes. You can grab it if you can find a real life use for it. Published under the MIT license.
import NicaraguanId from 'nic-id'
let idDocument = new NicaraguanId('001-010180-0001A')