{"_rev":"3-f38d6814b1dcac2b87a6f7f17a231a98","time":{"created":"2023-03-09T07:29:21.816Z","1.0.0":"2023-03-09T06:52:10.224Z","modified":"2023-03-09T07:29:24.897Z","1.0.1":"2023-03-09T07:29:23.682Z"},"_id":"@anglay/nw-sdk","name":"@anglay/nw-sdk","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@anglay/nw-sdk","version":"1.0.1","description":"A installer for nw.js","main":"index.js","bin":{"nw-sdk":"bin/nw"},"author":{"name":"anglay"},"license":"ISC","publishConfig":{"access":"public"},"dependencies":{"yargs":"^3.2.1"},"keywords":["nw","nw.js","nwjs","chromium","io.js","node-webkit","webkit","installer","desktop","application"],"_id":"@anglay/nw-sdk@1.0.1","_nodeVersion":"16.8.0","_npmVersion":"7.21.0","dist":{"integrity":"sha512-j+/gCGpq903smS+My3T6Fj8lPgB1CHJ3h6e3WvA5ainmGSRrrqJJev6TJ2kPVJgKPYSoi7MCHYO3d+5EZe/taw==","shasum":"3bba498d6d77b39b7b0c7ab5f454b14ff314cf97","tarball":"https://registry.npmjs.org/@anglay/nw-sdk/-/nw-sdk-1.0.1.tgz","fileCount":101,"unpackedSize":214895311,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7IqetQ2wEZByMbwWRkgQPbICX8t18wTuud92Bz7I/+AIgQcyVbgJoGmKOVHevHZqmXDUWz4fRjs3gQjac0biqUYg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCYrTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo40RAAjd/6O97tdiZC0U6/9uc+eLphcWAJGJDQVyQkS3VfA52MmHOq\r\nN52E8Ij8nF5s5KniaD3B6HVy99RGUK3gKEpeb6ny2rIehQjAm0hJhaN+wB/A\r\n09VUhnE0UE3jhKB2WG8zhv8HXBiUuMOzpPRdfnN0oiTq2i2N3ZRMa5V05PCv\r\nNPnK9qMPnim1+DoAFwOgAGECI1EAbOwtv7BvB5RF4Mnl+DBV5bn04enlcqgY\r\nIAywMa3E+QDT3Tgb1p5HHxxUdoNYO9DbDn+CEvUIhRbITQh2NuP4hCOiNd5c\r\n+gwGou33r6Lzihs6te9mZEMa9r1Wh0WKrrz8h+ITzL8/bo3wvbDxxDSzMNOA\r\nLcunqI6x4Pc7bM1su3268ik85+1VDtyc3Mlt+2M+eae+1HJm/amFO3vis8sx\r\nlRYEENPLn+J3B7IH6lwKkmEY3vRYQfg22WfdjNC9Y+nYKwGRUdVXh19xcWn4\r\n45HxI+QvHptQ/ed8Wmk0RQWIBVLNvO2XSvw/wjV/0BBPP7kxvuQU42nTlPzP\r\n6EgQ7XPwo+PQNlJ3OgGLUZy2zeb9lP6x6xgsmzSbdoFTzJuxyfpj9XWmK1wW\r\nrnalgsJvpOMhipyJJzDjBHKKzqElpjhdr23fbUk3N1xG3AJ/NluuTOUyDz42\r\nZl3fGyS53oAHPl5Y6hYzwpSWY0pRV1QWFpA=\r\n=q+Ne\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anglay","email":"435641688@qq.com"},"directories":{},"maintainers":[{"name":"anglay","email":"435641688@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nw-sdk_1.0.1_1678346961922_0.5846336645876553"},"_hasShrinkwrap":false}},"maintainers":[{"name":"anglay","email":"435641688@qq.com"}],"description":"A installer for nw.js","keywords":["nw","nw.js","nwjs","chromium","io.js","node-webkit","webkit","installer","desktop","application"],"author":{"name":"anglay"},"license":"ISC","readme":"# nw [![Build Status](http://img.shields.io/travis/nwjs/npm-installer.svg)](https://travis-ci.org/nwjs/npm-installer)\r\n\r\nAn installer for [nw.js](https://github.com/nwjs/nw.js).\r\n\r\n> nw.js is an app runtime based on Chromium and io.js. For building desktop applications that will run on OSX, Windows and Linux.\r\n\r\n[![NPM](https://nodei.co/npm/nw.png?downloads=true)](https://nodei.co/npm/nw/)\r\n\r\n## usage\r\nInstall locally to your project with: `npm install nw` and then in your `package.json` add a script:\r\n\r\n```json\r\n{\r\n  \"scripts\": {\r\n    \"start\": \"nw\"\r\n  }\r\n}\r\n```\r\n\r\nNow it will run your local project when you type `npm start`.\r\n\r\nIf your project is in another folder, add the path to the project `\"start\": \"nw path/to/app\"`.\r\n\r\nYou could also call the binary directly with `node_modules/.bin/nw` instead of adding to your `package.json`.\r\n\r\n### global\r\nYou can also install globally with `npm install nw -g` and then in any project type `nw` to run the project. Installing locally is recommended though as each project can have its own dependent version of nw.js.\r\n\r\n## example\r\nIf you want a really quick example try this:\r\n\r\n1. `git clone https://github.com/zcbenz/nw-sample-apps && cd nw-sample-apps`\r\n2. `npm init`\r\n3. `npm install nw`\r\n4. `\"node_modules/.bin/nw\" file-explorer`\r\n\r\nand now you should see a file explorer demo app.\r\n\r\n## command line options\r\nThere are a few (platform-specific) arguments you can pass to the `nw` executable to\r\ncustomize your nw.js application:\r\n\r\n* `--mac_plist <path-to-plist-file>`: (OS X only) Copies the given file to Info.plist in the app\r\n  bundle. This lets you do things like change your app's name and point to a different icon.\r\n\r\n* `--mac_icon <path-to-icns-file>`: (OS X only) Copies the given .icns file to the Resources/ dir\r\n  in the app bundle. You will need to point to the file with a custom plist file as well (see\r\n  `--mac_list`)\r\n\r\n**NOTE**: These options will keep the copied files in the app bundle for as long as the bundle is\r\non the filesystem (they're not deleted between app invocations). As a result, they're not\r\nrecommended if you installed nwjs globally using `-g`.  Also note that\r\n[OS X caches these files](http://proteo.me.uk/2011/08/mac-application-bundle-caching/),\r\nso you may need to manually clear these cached files during development.\r\n\r\n## install a specific version of nw.js\r\n\r\nTo install a specific version of nw.js use npm with the specific version: `npm install nw@0.12.0`\r\n\r\n> *Please note:* This npm package version tracks the version of nw.js that will be installed, with an additional build number that is used for revisions to the installer. As such `0.12.0-1` and `0.12.0-2` will both install `nw.js@0.12.0` but the latter has newer changes to the installer.\r\n\r\nYou may use `npm view nw versions` to view the list of available versions.\r\n\r\n## install a specific build type of nw.js\r\n\r\nnw.js has three build types: `normal`, `sdk` and `nacl`. To install a specific build type you may set npm config property `nwjs_build_type`, environment variable `NWJS_BUILD_TYPE` or pass command line option `--nwjs_build_type`:\r\n\r\n``` shell\r\nnpm install nwjs --nwjs_build_type=sdk\r\n```\r\n\r\nSetting option in `.npmrc` file (https://www.npmjs.org/doc/files/npmrc.html):\r\n\r\n```\r\nnwjs_build_type=sdk\r\n```\r\n\r\nSetting environment variable `NWJS_BUILD_TYPE`:\r\n\r\n``` shell\r\nexport NWJS_BUILD_TYPE=sdk\r\n```\r\n\r\nYou can alternatively install `sdk` build by specifying `-sdk` suffix in version:\r\n\r\n``` shell\r\nnpm install nwjs@0.13.3-sdk\r\n```\r\n\r\n## finding the path to the nw.js binary\r\n\r\nIf you would like to programmatically retrieve the path to the nw.js binary use:\r\n\r\n``` js\r\nvar findpath = require('nw').findpath;\r\nvar nwpath = findpath();\r\n// nwpath will equal the path to the binary depending on your environment\r\n```\r\n\r\n## retrieve binaries from custom download location or file path\r\n\r\nThe installer attempts to download binaries from the default location of `http://dl.nwjs.io/v`. You can override this by setting the npm config property `nwjs_urlbase` on the command line by passing the `--nwjs_urlbase` option:\r\n\r\n``` shell\r\nnpm install nwjs --nwjs_urlbase=http://my.own.location/somewhere\r\n```\r\n\r\nor adding it to your `.npmrc` file (https://www.npmjs.org/doc/files/npmrc.html):\r\n\r\n```\r\nnwjs_urlbase=http://my.own.location/somewhere\r\n```\r\n\r\nYou can alternatively set an environment variable `NWJS_URLBASE`:\r\n\r\n``` shell\r\nexport NWJS_URLBASE=http://my.own.location/somewhere\r\n```\r\n\r\nThe installer supports `file://` URLs to retrieve files from the local filesystem:\r\n\r\n``` shell\r\nexport NWJS_URLBASE=file:///home/bilbo/my/own/mirror\r\n```\r\n\r\n## using a proxy with or without authentication\r\n\r\nIf you are behind a proxy server you have to set an environment variable ```http_proxy``` with proxy servers url:\r\n\r\n```\r\nexport http_proxy=\"http://username:password@myproxy.com:8080\"\r\n```\r\n\r\nor\r\n\r\n```\r\nexport http_proxy=\"http://myproxy.com:8080\"\r\n```\r\n\r\n## license\r\n[nw.js](https://github.com/nwjs/nw.js)'s code and this installer use the MIT license.\r\n","readmeFilename":"README.md"}