{"id":16173159,"url":"https://github.com/joeferner/node-mnm","last_synced_at":"2025-03-19T00:30:45.015Z","repository":{"id":2308447,"uuid":"3267897","full_name":"joeferner/node-mnm","owner":"joeferner","description":"Make Node Module is a build tool for making native node.js modules","archived":false,"fork":false,"pushed_at":"2012-12-04T17:10:09.000Z","size":129,"stargazers_count":14,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-13T16:46:29.318Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joeferner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-25T19:52:37.000Z","updated_at":"2022-03-25T22:37:12.000Z","dependencies_parsed_at":"2022-09-11T14:22:24.700Z","dependency_job_id":null,"html_url":"https://github.com/joeferner/node-mnm","commit_stats":null,"previous_names":["nearinfinity/node-mnm"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeferner%2Fnode-mnm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeferner%2Fnode-mnm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeferner%2Fnode-mnm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeferner%2Fnode-mnm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeferner","download_url":"https://codeload.github.com/joeferner/node-mnm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955757,"owners_count":20374373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T04:06:53.001Z","updated_at":"2025-03-19T00:30:44.746Z","avatar_url":"https://github.com/joeferner.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mnm\n\nMake Node Module is a build tool for making native node.js modules.\n\n## Installation\n\n```bash\n$ npm install mnm\n```\n\n## Quick Examples\n\n```javascript\nvar builder = new Builder();\n\nbuilder.appendUnique('CXXFLAGS', ['-fno-builtin']);\nbuilder.appendIncludeDir('src/');\nbuilder.appendSourceDir('./src');\nbuilder.target = \"mynativemodule_bindings\";\n\nbuilder.run();\n```\n\n## Realworld Examples\n\n * [node-java](https://github.com/nearinfinity/node-java) - A node.js to Java bridge.\n * [node-shark](https://github.com/nearinfinity/node-shark) - Wrapper around libwireshark providing network packet dissection.\n * [node-oracle](https://github.com/nearinfinity/node-oracle) - node.js driver to connect with an oracle database.\n\n# Index\n\n## command line arguments\n * [-v](#cmdline_verbose) - Verbose\n * [-Wall](#cmdline_showWarnings) - Show Warnings\n\n## builder\n * [appendLinkerLibrary](#builder_appendLinkerLibrary)\n * [appendLinkerSearchDir](#builder_appendLinkerSearchDir)\n * [appendIncludeDir](#builder_appendIncludeDir)\n * [appendUnique](#builder_appendUnique)\n * [appendSourceDir](#builder_appendSourceDir)\n * [appendSource](#builder_appendSource)\n * [compile](#builder_compile)\n * [link](#builder_link)\n * [compileAndLink](#builder_compileAndLink)\n * [run](#builder_run)\n\n# API Documentation\n\n\u003ca name=\"cmdline\"/\u003e\n## command line\n\n\u003ca name=\"cmdline_verbose\" /\u003e\n### verbose -v or --verbose\n\nPrints the command lines being executed along with other verbose output.\n\n\u003ca name=\"cmdline_showWarnings\" /\u003e\n### -Wall or --showWarnings\n\nAdds the -Wall flag to the compile and prints all compiler warnings.\n\n\u003ca name=\"builder\"/\u003e\n## builder\n\n\u003ca name=\"builder_appendLinkerLibrary\" /\u003e\n### builder.appendLinkerLibrary(libname)\n\nAdds a library to the linker.\n\n__Arguments__\n\n * libname - The name of the library to add. This string should not contain the lib prefix or the extension.\n\n__Example__\n\n    builder.appendLinkerLibrary('ssl');\n\n\u003ca name=\"builder_appendLinkerSearchDir\" /\u003e\n### builder.appendLinkerSearchDir(dir)\n\nAdds a library to the linker search path.\n\n__Arguments__\n\n * dir - The directory to add to the search path.\n\n__Example__\n\n    builder.appendLinkerSearchDir('/usr/local/lib');\n\n\u003ca name=\"builder_appendIncludeDir\" /\u003e\n### builder.appendIncludeDir(dir)\n\nAdds a path to the list of include search directories.\n\n__Arguments__\n\n * dir - The directory to add to the search path.\n\n__Example__\n\n    builder.builder_appendIncludeDir('/src');\n\n\u003ca name=\"builder_appendUnique\" /\u003e\n### builder.appendUnique(flagGroup, flags)\n\nAdds a flag or flags to a flag group.\n\n__Arguments__\n\n * flagGroup - The flag group to add the flags to. This should be LINKFLAGS or CXXFLAGS.\n * flags - A single string or array of strings to add to the group.\n\n__Example__\n\n    builder.appendUnique('CXXFLAGS', '-Wall');\n    builder.appendUnique('CXXFLAGS', ['-Idir1', '-Idir2']);\n\n\u003ca name=\"builder_appendSourceDir\" /\u003e\n### builder.appendSourceDir(dir)\n\nAdds a source code directory to the list of compilable items. All files with the extensions cpp, c, cxx will be added to the compile step.\n\n__Arguments__\n\n * dir - The path to the directory containing the source files.\n\n__Example__\n\n    builder.appendSourceDir('./src');\n\n\u003ca name=\"builder_appendSource\" /\u003e\n### builder.appendSource(fileName)\n\nAdds a single source file to the list of compilable items.\n\n__Arguments__\n\n * fileName - The name of the file to compile.\n\n__Example__\n\n    builder.appendSource('./src/myModule.cpp');\n\n\u003ca name=\"builder_compile\" /\u003e\n### builder.compile([callback])\n\nPerforms the compile.\n\n__Arguments__\n\n * callback (optional) - An optional callback to be called when the compile is complete.\n\n__Example__\n\n    builder.compile();\n\n\u003ca name=\"builder_link\" /\u003e\n### builder.link([callback])\n\nPerforms the link.\n\n__Arguments__\n\n * callback (optional) - An optional callback to be called when the link is complete.\n\n__Example__\n\n    builder.link();\n\n\u003ca name=\"builder_compileAndLink\" /\u003e\n### builder.compileAndLink([callback])\n\nPerforms the compile and link.\n\n__Arguments__\n\n * callback (optional) - An optional callback to be called when the compile and link is complete.\n\n__Example__\n\n    builder.compileAndLink();\n\n\u003ca name=\"builder_run\" /\u003e\n### builder.run([options], [callback])\n\nRun the builder. If no options are specified will use command line arguments to determine what to do.\n\n__Arguments__\n\n * options (optional) - An object containing the following options\n  * verbose - true to be verbose\n  * showWarnings - true to show all compiler warnings\n  * action - set to one of the following actions\n   * build - compile and link the project\n   * compile - just perform the compile step.\n   * link - just perform the link step.\n * callback (optional) - An optional callback to be called when the run is complete.\n\n__Example__\n\n    builder.compileAndLink();\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012 Near Infinity Corporation\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeferner%2Fnode-mnm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeferner%2Fnode-mnm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeferner%2Fnode-mnm/lists"}