How to use codemod from npm

Using Nixos, how can I install and use codemod? I cannot install it via npm -g and there are no nodePackages.codemod. I have not figured out how to use this program on Nixos.

Package it.​​​