4 ms·
There is precedence for publishing non-js code on npm: https://github.com/substack/dotc https://github.com/substack/dotc
by seanewest 12y ago
There is precedence for publishing non-js code on npm: https://github.com/substack/dotc https://github.com/substack/dotc
- Alupis 12y agosomeone said there is already quicksort in the standard lib... so this code snippet is really only academic...
- Jtsummers 12y agoThat looks to be JS code that implements a C preprocessor. And the C code present in it seems to be for demonstrating/testing the preprocessor.
- seanewest 12y agoScroll down to the section "publishing c modules". It advocates publishing dotc modules on npm. "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"