{"_id":"npk","_rev":"3280211","name":"npk","description":"Node.js packaging utility","dist-tags":{"latest":"0.0.4"},"maintainers":[{"name":"fredchien","email":""}],"time":{"modified":"2024-04-18T03:59:56.000Z","created":"2013-05-09T14:57:38.891Z","0.0.4":"2014-12-31T03:11:14.299Z","0.0.3":"2014-12-31T01:27:26.591Z","0.0.2":"2013-05-18T01:17:37.890Z","0.0.1":"2013-05-09T14:57:38.891Z"},"users":{},"author":{"name":"Fred Chien","email":"fred@mandice.com","url":"錢逢祥"},"repository":{"type":"git","url":"git@github.com:cfsghost/npk.git"},"versions":{"0.0.4":{"name":"npk","version":"0.0.4","description":"Node.js packaging utility","keywords":["database","api"],"homepage":"https://github.com/cfsghost/npk","author":{"name":"Fred Chien","email":"fred@mandice.com","url":"錢逢祥"},"license":"MIT","repository":{"type":"git","url":"git@github.com:cfsghost/npk.git"},"directories":{"tests":"lib"},"engines":{"node":">= 0.8.0"},"dependencies":{"fs-extra":"^0.13.0","glob":"^3.2.9","node-array":"0.0.6","uglify-js":"~2.3.0"},"bin":{"npk":"./bin/npk"},"gitHead":"8e6776a693dee2311b3a6359c4fce8aba16a993b","bugs":{"url":"https://github.com/cfsghost/npk/issues"},"_id":"npk@0.0.4","scripts":{},"_shasum":"5d6bf8e2369696f52c63c73653f0e21c8fa6ce2a","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"fredchien","email":"cfsghost@gmail.com"},"maintainers":[{"name":"fredchien","email":""}],"dist":{"shasum":"5d6bf8e2369696f52c63c73653f0e21c8fa6ce2a","size":14406,"noattachment":false,"key":"/npk/-/npk-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/npk/download/npk-0.0.4.tgz"},"_cnpmcore_publish_time":"2021-12-23T14:58:36.657Z","publish_time":1419995474299,"_cnpm_publish_time":1419995474299},"0.0.3":{"name":"npk","version":"0.0.3","description":"Node.js packaging utility","keywords":["database","api"],"homepage":"https://github.com/cfsghost/npk","author":{"name":"Fred Chien","email":"fred@mandice.com","url":"錢逢祥"},"license":"MIT","repository":{"type":"git","url":"git@github.com:cfsghost/npk.git"},"directories":{"tests":"lib"},"engines":{"node":">= 0.8.0"},"dependencies":{"fs-extra":"^0.13.0","glob":"^3.2.9","node-array":"0.0.6","uglify-js":"~2.3.0"},"bin":{"npk":"./bin/npk"},"gitHead":"6a0d4d7311bdc24c842f6de8270edf43ff93e65c","bugs":{"url":"https://github.com/cfsghost/npk/issues"},"_id":"npk@0.0.3","scripts":{},"_shasum":"affd0c69615fa705437b39ab4338e794bfded8fe","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"fredchien","email":"cfsghost@gmail.com"},"maintainers":[{"name":"fredchien","email":""}],"dist":{"shasum":"affd0c69615fa705437b39ab4338e794bfded8fe","size":10516,"noattachment":false,"key":"/npk/-/npk-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/npk/download/npk-0.0.3.tgz"},"_cnpmcore_publish_time":"2021-12-23T14:58:35.789Z","publish_time":1419989246591,"_cnpm_publish_time":1419989246591},"0.0.2":{"name":"npk","version":"0.0.2","description":"Node.js packaging utility","keywords":["database","api"],"homepage":"https://github.com/cfsghost/npk","author":{"name":"Fred Chien","email":"fred@mandice.com","url":"錢逢祥"},"license":"MIT","repository":{"type":"git","url":"git@github.com:cfsghost/npk.git"},"directories":{"tests":"lib"},"engines":{"node":">= 0.8.0"},"dependencies":{"node-array":"0.0.6","uglify-js":"~2.3.0"},"bin":{"npk":"./bin/npk"},"_id":"npk@0.0.2","dist":{"shasum":"86de6387d4d0b47b276de97f3b5a808ca5da7b86","size":15698,"noattachment":false,"key":"/npk/-/npk-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/npk/download/npk-0.0.2.tgz"},"maintainers":[{"name":"fredchien","email":""}],"_cnpmcore_publish_time":"2021-12-23T14:58:34.928Z","publish_time":1368839857890,"_cnpm_publish_time":1368839857890},"0.0.1":{"name":"npk","version":"0.0.1","description":"Node.js packaging utility","keywords":["database","api"],"homepage":"https://github.com/cfsghost/npk","author":{"name":"Fred Chien","email":"fred@mandice.com","url":"錢逢祥"},"license":"MIT","repository":{"type":"git","url":"git@github.com:cfsghost/npk.git"},"directories":{"tests":"lib"},"engines":{"node":">= 0.8.0"},"dependencies":{"node-array":"0.0.6","uglify-js":"~2.3.0"},"bin":{"npk":"./bin/npk"},"_id":"npk@0.0.1","dist":{"shasum":"141a6872fb8a72970a082f9f42770931d29a03d7","size":3666,"noattachment":false,"key":"/npk/-/npk-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/npk/download/npk-0.0.1.tgz"},"maintainers":[{"name":"fredchien","email":""}],"_cnpmcore_publish_time":"2021-12-23T14:58:34.064Z","publish_time":1368111458891,"_cnpm_publish_time":1368111458891}},"readme":"NPK\n===\n\nNode.js packaging utility to bundle javascript and resource files.\n\nUsage\n-\n\nInstall NPK globally via NPM:\n```\nnpm install npk -g\n```\n\nUsing command to pack your project:\n```\nnpk tests/purejs/\n```\n\nAfter packaging, NPK will create a new folder `out` for package. You can find out the package in there:\n```\ntests/purejs/out/app.js/\n```\n\nFinally, you can run packaged application directly:\n```\nnode tests/purejs/out/app.js/app.js\n```\n\nThree levels for packaging\n-\n\nNPK has special and funny options for three levels for packaging your project.\n\n__Remove Mock-up (default)__\n```\nnpk [project path]\n```\n\n__Mom doesn't recognize__\n```\nnpk [project path] --mom-doesnt-recognize\n```\n__Dad doesn't recognize__\n\nAt this level, NPK is packaging your project with C/C++ compiler, to generate a Node.js native module.\n```\nnpk [project path] --dad-doesnt-recognize\n```\n\nNote that the third level will attempt to compile all things with machine code then saving as a binary file. It means packed application is not going to work on cross-platform. If you need to support several various platform for your project, it must re-package you application on specific platform what you want.\n\nNote for Windows Users\n-\n\nGenerating Node.js native module requires C/C++ compiler and Python development. You must install Visual Studio(Express version is fine) and Python 2.7(NOT 3.x) before using \"Dad doesn' recognize\" option.\n\nHow it works\n-\n\nNPK is similar to general compiler for computer language. With linking and managing symbol table, NPK can bundle multiple JavaScript source code files, that's just like that compiler is getting objects for making a single binary file.\n\nActual mechanism to package JavaScript source code files:\n\n1. Getting source files defined in the 'npk_target' property in package.json.\n2. Generating symbol table for storing source code files.\n3. Linking and bundling symbol table files to generate a single file.\n\nLicense\n-\nLicensed under the MIT License\n\nAuthors\n-\nCopyright(c) 2013 Fred Chien <<cfsghost@gmail.com>>\n","_attachments":{},"homepage":"https://github.com/cfsghost/npk","bugs":{"url":"https://github.com/cfsghost/npk/issues"},"license":"MIT"}