Implement a `useNpm` directive for packages