{"_id":"winattr","_rev":"49479","name":"winattr","description":"Foolproof Windows® file attributes.","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"time":{"modified":"2021-06-03T10:15:10.000Z","created":"2014-08-01T21:40:35.222Z","3.0.0":"2019-04-23T00:53:21.273Z","2.0.0":"2016-11-02T13:54:12.214Z","1.1.0":"2015-09-16T00:41:57.314Z","1.0.0":"2015-06-09T13:08:08.647Z","0.2.3":"2015-05-21T03:32:42.974Z","0.2.2":"2014-10-24T19:38:20.316Z","0.2.1":"2014-08-21T13:40:30.922Z","0.2.0":"2014-08-21T11:33:03.148Z","0.1.2":"2014-08-15T05:08:42.600Z","0.1.1":"2014-08-12T22:14:57.076Z","0.1.0":"2014-08-01T21:40:35.222Z"},"users":{"baazak":true,"andyd":true,"faraoman":true},"author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"https://svachon.com"},"repository":{"type":"git","url":"git+https://github.com/stevenvachon/winattr.git"},"versions":{"3.0.0":{"name":"winattr","description":"Foolproof Windows® file attributes.","version":"3.0.0","license":"MIT","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"https://svachon.com"},"repository":{"type":"git","url":"git+https://github.com/stevenvachon/winattr.git"},"main":"lib","dependencies":{"fswin":"^3.18.918"},"devDependencies":{"chai":"^4.2.0","coveralls":"^3.0.3","mocha":"^6.1.4","nyc":"^14.0.0"},"engines":{"node":">= 8"},"scripts":{"ci":"npm run test && nyc report --reporter=text-lcov | coveralls","posttest":"nyc report --reporter=html","test":"nyc --reporter=text-summary mocha test/ --bail --check-leaks"},"keywords":["attributes","file","fs","fs-stat","native","ntfs","windows"],"gitHead":"da53ba8ca6157b39cf0480a5e667dca2ae0a1be6","bugs":{"url":"https://github.com/stevenvachon/winattr/issues"},"homepage":"https://github.com/stevenvachon/winattr#readme","_id":"winattr@3.0.0","_nodeVersion":"11.14.0","_npmVersion":"6.7.0","dist":{"shasum":"33e430c41510ce4018a0daaabb24927c162f1b1d","size":4885,"noattachment":false,"key":"/winattr/-/winattr-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/winattr/download/winattr-3.0.0.tgz"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/winattr_3.0.0_1555980801132_0.9002151853080724"},"_hasShrinkwrap":false,"publish_time":1555980801273,"_cnpm_publish_time":1555980801273},"2.0.0":{"name":"winattr","description":"Foolproof Windows® file attributes.","version":"2.0.0","license":"MIT","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"https://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git+https://github.com/stevenvachon/winattr.git"},"dependencies":{"fswin":"^2.16.1102"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.1.2"},"engines":{"node":">= 4"},"scripts":{"test":"mocha test/ --bail --reporter spec --check-leaks"},"files":["lib","license"],"keywords":["attributes","file","fs","fs-stat","native","ntfs","windows"],"gitHead":"d8d20128bfe66f9ec535477d2abc1265ec6b8409","bugs":{"url":"https://github.com/stevenvachon/winattr/issues"},"homepage":"https://github.com/stevenvachon/winattr#readme","_id":"winattr@2.0.0","_shasum":"553d4e347c8c598551a8d7032eefe36526bd5026","_from":".","_npmVersion":"3.10.8","_nodeVersion":"7.0.0","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"dist":{"shasum":"553d4e347c8c598551a8d7032eefe36526bd5026","size":5051,"noattachment":false,"key":"/winattr/-/winattr-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/winattr/download/winattr-2.0.0.tgz"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/winattr-2.0.0.tgz_1478094850051_0.22980813146568835"},"directories":{},"publish_time":1478094852214,"_cnpm_publish_time":1478094852214,"_hasShrinkwrap":false},"1.1.0":{"name":"winattr","description":"Windows file attributes.","version":"1.1.0","license":"MIT","homepage":"https://github.com/stevenvachon/winattr","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/winattr.git"},"bugs":{"url":"https://github.com/stevenvachon/winattr/issues"},"dependencies":{"fswin":"^2.15.915"},"devDependencies":{"chai":"^3.2.0","mocha":"^2.3.2","object-assign":"^4.0.1","semver":"^5.0.3"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test/ --bail --reporter spec --check-leaks"},"files":["lib","license"],"keywords":["attributes","file","fs","fs-stat","native","ntfs","windows"],"gitHead":"95aba3c796513aefc044ccf270931f220a2fc196","_id":"winattr@1.1.0","_shasum":"0916acd95bd0810d27c5bef7a036e302c85cff29","_from":"git://github.com/stevenvachon/winattr.git","_resolved":"git://github.com/stevenvachon/winattr.git#95aba3c796513aefc044ccf270931f220a2fc196","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"dist":{"shasum":"0916acd95bd0810d27c5bef7a036e302c85cff29","size":5099,"noattachment":false,"key":"/winattr/-/winattr-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/winattr/download/winattr-1.1.0.tgz"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"directories":{},"publish_time":1442364117314,"_cnpm_publish_time":1442364117314,"_hasShrinkwrap":false},"1.0.0":{"name":"winattr","description":"Windows file attributes.","version":"1.0.0","license":"MIT","homepage":"https://github.com/stevenvachon/winattr","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/winattr.git"},"bugs":{"url":"https://github.com/stevenvachon/winattr/issues"},"dependencies":{"fswin":"2.15.305"},"devDependencies":{"chai":"^3.0.0","mocha":"^2.2.5","object-assign":"^3.0.0","semver":"^4.3.6"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test/ --bail --reporter spec --check-leaks"},"files":["lib","license"],"keywords":["attributes","file","fs","fs-stat","native","ntfs","windows"],"gitHead":"a3be6a596ba1a0f016982ad2781bb0acf559d0da","_id":"winattr@1.0.0","_shasum":"72c23c2349074199029f8119da831d86119c4c09","_from":"git://github.com/stevenvachon/winattr.git","_resolved":"git://github.com/stevenvachon/winattr.git#a3be6a596ba1a0f016982ad2781bb0acf559d0da","_npmVersion":"2.10.1","_nodeVersion":"2.1.0","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"dist":{"shasum":"72c23c2349074199029f8119da831d86119c4c09","size":5106,"noattachment":false,"key":"/winattr/-/winattr-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/winattr/download/winattr-1.0.0.tgz"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"directories":{},"publish_time":1433855288647,"_cnpm_publish_time":1433855288647,"_hasShrinkwrap":false},"0.2.3":{"name":"winattr","description":"Windows file attributes.","version":"0.2.3","homepage":"https://github.com/stevenvachon/winattr","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/winattr.git"},"bugs":{"url":"https://github.com/stevenvachon/winattr/issues"},"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"dependencies":{"fswin":"2.15.305"},"devDependencies":{"chai":"^2.3","mocha":"^2.2.5","object.assign":"^2.0.1"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test/ --bail --reporter spec --check-leaks"},"files":["lib"],"keywords":["attributes","file","fs","fs-stat","native","ntfs","windows"],"gitHead":"8e19756b938d57058f1b2d5cdc7f4c73dd12ac04","_id":"winattr@0.2.3","_shasum":"016e91489406b241558a22b8a585a7687e841e0f","_from":"git://github.com/stevenvachon/winattr.git","_resolved":"git://github.com/stevenvachon/winattr.git#8e19756b938d57058f1b2d5cdc7f4c73dd12ac04","_npmVersion":"2.9.0","_nodeVersion":"2.0.0","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"dist":{"shasum":"016e91489406b241558a22b8a585a7687e841e0f","size":3310,"noattachment":false,"key":"/winattr/-/winattr-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/winattr/download/winattr-0.2.3.tgz"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"directories":{},"publish_time":1432179162974,"_cnpm_publish_time":1432179162974,"_hasShrinkwrap":false},"0.2.2":{"name":"winattr","description":"Windows file attributes.","version":"0.2.2","homepage":"https://github.com/stevenvachon/winattr","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/winattr.git"},"bugs":{"url":"https://github.com/stevenvachon/winattr/issues"},"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"dependencies":{"fswin":"2.14.1024"},"devDependencies":{"chai":"^1.9","mocha":"^2.0","object.assign":"^1.0"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test/ --bail --reporter spec --check-leaks"},"files":["lib"],"keywords":["attributes","file","fs","fs-stat","native","ntfs","windows"],"_id":"winattr@0.2.2","_shasum":"ff34d17e13927e2eb9cb32e2eac37519100f5d07","_resolved":"git://github.com/stevenvachon/winattr.git#8601eabff8971a6444371bc1e9c44f82f67e6195","_npmVersion":"2.0.0","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"ff34d17e13927e2eb9cb32e2eac37519100f5d07","size":5303,"noattachment":false,"key":"/winattr/-/winattr-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/winattr/download/winattr-0.2.2.tgz"},"directories":{},"publish_time":1414179500316,"_cnpm_publish_time":1414179500316,"_hasShrinkwrap":false},"0.2.1":{"name":"winattr","description":"Windows file attributes.","version":"0.2.1","homepage":"https://github.com/stevenvachon/winattr","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/winattr.git"},"bugs":{"url":"https://github.com/stevenvachon/winattr/issues"},"dependencies":{"fswin-binary":"~0.1"},"devDependencies":{"chai":"^1.9","mocha":"^1.21","object.assign":"^1.0"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test/ --bail --reporter spec --check-leaks"},"files":["lib"],"keywords":["attributes","file","fs","fs-stat","native","ntfs","windows"],"_id":"winattr@0.2.1","_shasum":"2002c4b616a2014e0fb80994fb6009f4ef0c4e74","_resolved":"git://github.com/stevenvachon/winattr.git#1c6f233bc86a835058b369e9d01c4cff26d001af","_npmVersion":"1.4.9","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"2002c4b616a2014e0fb80994fb6009f4ef0c4e74","size":5103,"noattachment":false,"key":"/winattr/-/winattr-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/winattr/download/winattr-0.2.1.tgz"},"directories":{},"publish_time":1408628430922,"_cnpm_publish_time":1408628430922,"_hasShrinkwrap":false},"0.2.0":{"name":"winattr","description":"Windows file attributes.","version":"0.2.0","homepage":"https://github.com/stevenvachon/winattr","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/winattr.git"},"bugs":{"url":"https://github.com/stevenvachon/winattr/issues"},"dependencies":{"fswin-binary":"~0.1"},"devDependencies":{"chai":"^1.9","mocha":"^1.21","object.assign":"^1.0"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test/ --bail --reporter spec --check-leaks"},"files":["lib"],"keywords":["attributes","file","fs","fs-stat","native","ntfs","windows"],"_id":"winattr@0.2.0","_shasum":"e1a009632421b2de079df59e696824b40ba688a7","_resolved":"git://github.com/stevenvachon/winattr.git#cda4f2dca3d544795d463ddb248546d725fe47de","_npmVersion":"1.4.9","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"e1a009632421b2de079df59e696824b40ba688a7","size":5092,"noattachment":false,"key":"/winattr/-/winattr-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/winattr/download/winattr-0.2.0.tgz"},"directories":{},"publish_time":1408620783148,"_cnpm_publish_time":1408620783148,"_hasShrinkwrap":false},"0.1.2":{"name":"winattr","description":"Windows file attributes.","version":"0.1.2","homepage":"https://github.com/stevenvachon/winattr","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/winattr.git"},"bugs":{"url":"https://github.com/stevenvachon/winattr/issues"},"devDependencies":{"chai":"^1.9","mocha":"^1.21","object.assign":"~0.5"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test/ --bail --reporter spec --check-leaks"},"files":["lib"],"keywords":["attributes","file","fs","fs-stat","windows"],"_id":"winattr@0.1.2","_shasum":"d9537246336d52364ef77fb32e9df893a49448b6","_resolved":"git://github.com/stevenvachon/winattr.git#e8a72a6da20ecf7067e2f350a4d2f0eea6d28182","_npmVersion":"1.4.9","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"d9537246336d52364ef77fb32e9df893a49448b6","size":3888,"noattachment":false,"key":"/winattr/-/winattr-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/winattr/download/winattr-0.1.2.tgz"},"directories":{},"publish_time":1408079322600,"_cnpm_publish_time":1408079322600,"_hasShrinkwrap":false},"0.1.1":{"name":"winattr","description":"Windows file attributes.","version":"0.1.1","homepage":"https://github.com/stevenvachon/winattr","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/winattr.git"},"bugs":{"url":"https://github.com/stevenvachon/winattr/issues"},"devDependencies":{"chai":"^1.9","mocha":"^1.21","object.assign":"~0.5"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test/ --bail --reporter spec --check-leaks"},"files":["lib"],"keywords":["attributes","file","fs","fs-stat","windows"],"_id":"winattr@0.1.1","_shasum":"e9406c8344e94f1cd86b2e1bed6a9ba393b465f4","_resolved":"git://github.com/stevenvachon/winattr.git#13fadf7ced9207f4891abcac642fd5e9bb86e021","_npmVersion":"1.4.9","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"e9406c8344e94f1cd86b2e1bed6a9ba393b465f4","size":2954,"noattachment":false,"key":"/winattr/-/winattr-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/winattr/download/winattr-0.1.1.tgz"},"directories":{},"publish_time":1407881697076,"_cnpm_publish_time":1407881697076,"_hasShrinkwrap":false},"0.1.0":{"name":"winattr","description":"Windows file attributes.","version":"0.1.0","homepage":"https://github.com/stevenvachon/winattr","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/winattr.git"},"bugs":{"url":"https://github.com/stevenvachon/winattr/issues"},"devDependencies":{"chai":"^1.9","mocha":"^1.21","object.assign":"~0.5"},"engines":{"node":">= 0.10"},"scripts":{"test":"node node_modules/mocha/bin/mocha test/ --bail --reporter spec --check-leaks"},"_id":"winattr@0.1.0","_shasum":"2335902863f28ac76c96391281e09e3b0a395cbf","_resolved":"git://github.com/stevenvachon/winattr.git#2deb38188bfdfee9b8bca04d59f51c6f0c9693a6","_npmVersion":"1.4.9","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"2335902863f28ac76c96391281e09e3b0a395cbf","size":2945,"noattachment":false,"key":"/winattr/-/winattr-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/winattr/download/winattr-0.1.0.tgz"},"directories":{},"publish_time":1406929235222,"_cnpm_publish_time":1406929235222,"_hasShrinkwrap":false}},"readme":"# winattr [![NPM Version][npm-image]][npm-url] [![Linux Build][travis-image]][travis-url] [![Windows Build][appveyor-image]][appveyor-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Monitor][greenkeeper-image]][greenkeeper-url]\n\n> Foolproof Windows® file attributes for Node.js\n\nGet and set:\n* `archive`\n* `hidden`\n* `readonly`\n* `system`\n\n… on files and/or directories.\n\nA native binding is used, offering great performance. As a contingency in case that fails, functionality will silently revert to a command line, though it is considerably slower.\n\n\n## Installation\n\nIt may go without saying, but this library is not intended to run on anything other than Windows.\n\n[Node.js](http://nodejs.org/) `>= 8` is required. To install, type this at the command line:\n```\nnpm install winattr\n```\n\n\n## Methods\n\n### `get(path, callback)`\n`path` - Path to file or directory  \n`callback(err,attrs)` - A callback which is called upon completion  \n```js\nwinattr.get('path/to/file.ext', (err, attrs) => {\n  if (err == null) {\n    console.log(attrs);\n  }\n});\n```\n\n### `getSync(path)`\n`path` - Path to file or directory  \n\nReturns an `Object` or throws an error if the file or dir cannot be found/accessed.\n```js\nconst attrs = winattr.getSync('path/to/file.ext');\n\nconsole.log(attrs);\n```\n\n### `set(path, attrs, callback)`\n`path` - Path to file or directory  \n`attrs` - An object containing attributes to change  \n`callback(err)` - A callback which is called upon completion  \n```js\nwinattr.set('path/to/folder/', {readonly:true}, err => {\n  if (err == null) {\n    console.log('success');\n  }\n});\n```\n\n### `setSync(path, attrs)`\n`path` - Path to file or directory  \n`attrs` - An object containing attributes to change  \n\nThrows an error if the file or dir cannot be found/accessed.\n```js\nwinattr.setSync('path/to/folder/', {readonly:true});\n```\n\n\n[npm-image]: https://img.shields.io/npm/v/winattr.svg\n[npm-url]: https://npmjs.com/package/winattr\n[travis-image]: https://img.shields.io/travis/stevenvachon/winattr.svg?label=linux\n[travis-url]: https://travis-ci.org/stevenvachon/winattr\n[appveyor-image]: https://img.shields.io/appveyor/ci/stevenvachon/winattr.svg?label=windows\n[appveyor-url]: https://ci.appveyor.com/project/stevenvachon/winattr\n[coveralls-image]: https://img.shields.io/coveralls/stevenvachon/winattr.svg\n[coveralls-url]: https://coveralls.io/github/stevenvachon/winattr\n[greenkeeper-image]: https://badges.greenkeeper.io/stevenvachon/winattr.svg\n[greenkeeper-url]: https://greenkeeper.io/\n","_attachments":{},"homepage":"https://github.com/stevenvachon/winattr#readme","bugs":{"url":"https://github.com/stevenvachon/winattr/issues"},"license":"MIT"}