why would you publish that on npm? i'm not familiar with the ecosystem, is there a precedent for publishing non-js source files on npm?
However, for a trivial piece of code as this... it could be argued it's not copyright-able and therefore you are OK... but just be careful in the future.
Unpublishing!
Many times I've emailed devs on Github regarding some code they have that I'd like to use part of but they've failed to assign a license. A few time's I've been turned away... but usually the dev just forgot or was not aware others couldn't freely use it.
"npm? Isn't that for javascript?
Yes, but:
native node modules are written in c++
npm already exists
npm installs packages in a way that avoids dependency hell"