@co_snow/fn-guard

Node.js Addon Example

Usage no npm install needed!

<script type="module">
  import coSnowFnGuard from 'https://cdn.skypack.dev/@co_snow/fn-guard';
</script>

README

Configure

node-gyp configure

Build (node-gyp)

NOTE: deprecated

node-gyp build

Build C Libraries and Copy to Core

yarn core

Build (prebuildify)

yarn build

Rebuild Everything, including Core lib

yarn rebuild

Test

yarn test

MEMORY LEAKS

yarn rebuild-with-debug-symbols && valgrind --tool=memcheck --leak-check=full node ./index.test.js

Publish

npm version patch
npm publish --access public