{"maintainers":[{"name":"anonymous","email":"abbey@khrome.net"}],"keywords":["bitmask","file mask","permissions"],"dist-tags":{"latest":"1.0.2"},"author":{"name":"Abbey Hawk Sparrow","email":"@khrome","url":"http://patternweaver.com"},"description":"A utility for manipulating bit masks","readme":"bit-mask.js\n==============\n\n[![NPM version](https://img.shields.io/npm/v/bit-mask.svg)]()\n[![npm](https://img.shields.io/npm/dt/bit-mask.svg)]()\n[![Travis](https://img.shields.io/travis/khrome/bit-mask.svg)]()\n\nAn NPM for manipulating bit masks\n\nJust a convenient abstraction for computing bitmasks, such as file permissions. \n\n    var BitMask = require('bit-mask');\n\nBit Masks\n---------\nDeclare a new BitMask with an initial value\n\n    var mask = new BitMask(value, [base]);\n    \nSet a particular bit with a boolean\n\n    mask.setBit(position, value)\n    \nget the boolean value of a particular bit\n    \n    mask.getBit(position)\n    \nget the bits as a string of binary digits\n    \n    maks.bits()\n    \nOwnership Mask\n--------------\n\nDeclare a new Ownership Mask with an initial value\n\n    var mask = new BitMask.OwnershipMask(value);\n    \nThen you have all the functions from the BitMask plus you can get the permissions in a more readable way with:\n\n    mask.hasPermission(context, permission)\n    \nwhere context is 'user', 'group' or 'world' and permission is 'read', 'write', 'execute' and a corresponding set:\n\n    mask.setPermission(context, permission, value)\n    \nas well as a modify function which allows you to pass chmod style modifier strings as well as integer values.\n\n    mask.modify('ugo+rwx')\n    mask.modify(755);\n\nTesting\n-------\n\nRun the tests at the project root with:\n\n    mocha\n\nEnjoy,\n\n-Abbey Hawk Sparrow","repository":{"type":"git","url":"git+ssh://git@github.com/khrome/bit-mask.git"},"bugs":{"url":"https://github.com/khrome/bit-mask/issues"},"license":"MIT","versions":{"0.0.1-alpha":{"name":"bit-mask","homepage":"https://github.com/khrome/bit-mask","version":"0.0.1-alpha","main":"bit-mask.js","description":"A utility for manipulating bit masks","keywords":["bitmask","file mask","permissions"],"author":{"name":"Abbey Hawk Sparrow","email":"@khrome","url":"http://patternweaver.com"},"contributors":[],"bugs":{"url":"https://github.com/khrome/bit-mask/issues"},"license":"MIT","repository":{"type":"git","url":"git@github.com:khrome/bit-mask.git"},"dependencies":{"prime":"*"},"devDependencies":{"mocha":"*","should":"*"},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"anonymous","email":"abbey@khrome.net"},"_id":"bit-mask@0.0.1-alpha","_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.8.12","_defaultsLoaded":true,"dist":{"shasum":"14d642fdecf4890ba1626e1719fec1608c903a8e","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/bit-mask/-/bit-mask-0.0.1-alpha.tgz","integrity":"sha512-xBcecH2+DW2eZyr5evFbfYRIyjnfeGOKvMJPtXOIdCv74paiS8wg6E1REgH0HGxyfT6i+IaOfhDrWTRmAbnLGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCu2Kr+H0InV2bz5352L+C8C8eIy8Mi16qv48FZ925o8QIhAPTfQKoLAGpO64m59+TCRVoAxDlmMCPuKRihJ4/mPVbJ"}]},"maintainers":[{"name":"anonymous","email":"abbey@khrome.net"}],"directories":{}},"0.0.2-alpha":{"name":"bit-mask","homepage":"https://github.com/khrome/bit-mask","version":"0.0.2-alpha","main":"bit-mask.js","description":"A utility for manipulating bit masks","keywords":["bitmask","file mask","permissions"],"author":{"name":"Abbey Hawk Sparrow","email":"@khrome","url":"http://patternweaver.com"},"contributors":[],"bugs":{"url":"https://github.com/khrome/bit-mask/issues"},"license":"MIT","repository":{"type":"git","url":"git@github.com:khrome/bit-mask.git"},"dependencies":{"prime":"0.0.5-alpha"},"devDependencies":{"mocha":"*","should":"*"},"optionalDependencies":{},"engines":{"node":"*"},"_id":"bit-mask@0.0.2-alpha","dist":{"shasum":"42880fa80055151165d5fa15b331bc0459c27372","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/bit-mask/-/bit-mask-0.0.2-alpha.tgz","integrity":"sha512-fsyRv8WUA63S1OO+YAE4uU9zAmWQdjcoHGwnqKvec271R5QFZRK8Ez9IJHphtuHg5C6wkvqKA0LLqWFOUhR/wg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDf9e4zoqA42FcVc5G+GzZfh1nZUAg1Bdzv88PVpc5C5AIgHUVJLTyaOtDFkdzbc9N1MeABq/YRUina6yLT4D0LBDE="}]},"_npmVersion":"1.1.70","_npmUser":{"name":"anonymous","email":"abbey@khrome.net"},"maintainers":[{"name":"anonymous","email":"abbey@khrome.net"}],"directories":{}},"1.0.0":{"name":"bit-mask","homepage":"https://github.com/khrome/bit-mask","version":"1.0.0","main":"bit-mask.js","description":"A utility for manipulating bit masks","keywords":["bitmask","file mask","permissions"],"author":{"name":"Abbey Hawk Sparrow","email":"@khrome","url":"http://patternweaver.com"},"contributors":[],"bugs":{"url":"https://github.com/khrome/bit-mask/issues"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/khrome/bit-mask.git"},"dependencies":{"array-events":"0.2.0"},"devDependencies":{"mocha":"*","should":"*"},"optionalDependencies":{},"engines":{"node":"*"},"gitHead":"eade3ab5f2d5f116a181a7479399fef9403bb970","_id":"bit-mask@1.0.0","scripts":{},"_shasum":"5056495680a18d3a4b6e02003b47ce663b573676","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"anonymous","email":"abbey@khrome.net"},"maintainers":[{"name":"anonymous","email":"abbey@khrome.net"}],"dist":{"shasum":"5056495680a18d3a4b6e02003b47ce663b573676","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/bit-mask/-/bit-mask-1.0.0.tgz","integrity":"sha512-PsLCAmtJ0uU+5SgwonScKhwjjWdsjOv1RfP5ozkWZQV1UTDr8gcI7y3ZxgQEjLL7cpbmrMz4h5ZmjeMPHRUGNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnDAmFV2ys7Rh2j8dX6rJyv9EpxBVm+vjPudXzvuI5yAIgbLkemlw8c/3ZtxwlrlBgX6MXKrUyhtUfMI9N6NGnWPQ="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/bit-mask-1.0.0.tgz_1480042607910_0.2751799060497433"},"directories":{}},"1.0.1":{"name":"bit-mask","homepage":"https://github.com/khrome/bit-mask","version":"1.0.1","main":"bit-mask.js","description":"A utility for manipulating bit masks","keywords":["bitmask","file mask","permissions"],"author":{"name":"Abbey Hawk Sparrow","email":"@khrome","url":"http://patternweaver.com"},"contributors":[],"bugs":{"url":"https://github.com/khrome/bit-mask/issues"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/khrome/bit-mask.git"},"dependencies":{"array-events":"0.2.0"},"devDependencies":{"mocha":"*","should":"*"},"optionalDependencies":{},"engines":{"node":"*"},"gitHead":"a06ecb1a68c8dc85d2e8b344830117457d26973b","_id":"bit-mask@1.0.1","scripts":{},"_shasum":"d7cf212bde6e2dcc0503faab50941e4eb289a6f5","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"anonymous","email":"abbey@khrome.net"},"maintainers":[{"name":"anonymous","email":"abbey@khrome.net"}],"dist":{"shasum":"d7cf212bde6e2dcc0503faab50941e4eb289a6f5","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/bit-mask/-/bit-mask-1.0.1.tgz","integrity":"sha512-aNB+Kb5/Gdm4ejF5/IeCFYRH9QNklfNfTZ0XD242qGYQ37IfviCCgJyHh/2hXLEEKVORv4LhZKzZAHlsOSCU1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZwfxigwYu9Lb2oyxJ9qWiEPi494WK8ypdZrPF+j9L0AIgGXj3KNi1TshGeL/maFp5AhuDSrnHOBDQF/TwWstXnIU="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/bit-mask-1.0.1.tgz_1482202237453_0.44387124199420214"},"directories":{}},"1.0.2":{"name":"bit-mask","homepage":"https://github.com/khrome/bit-mask","version":"1.0.2","main":"bit-mask.js","description":"A utility for manipulating bit masks","keywords":["bitmask","file mask","permissions"],"author":{"name":"Abbey Hawk Sparrow","email":"@khrome","url":"http://patternweaver.com"},"contributors":[],"bugs":{"url":"https://github.com/khrome/bit-mask/issues"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/khrome/bit-mask.git"},"dependencies":{"array-events":"^0.2.0"},"devDependencies":{"mocha":"*","request":"*","should":"*"},"optionalDependencies":{},"engines":{"node":"*"},"gitHead":"cc705994ceb244452b7d5ca0a922e863b2bb38ea","_id":"bit-mask@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"anonymous","email":"abbey@khrome.net"},"dist":{"integrity":"sha512-UGtq08LSiazxL4zVmBzrhdCWnT4RWx3JhhD/3crhfv8xxjnVHxf/WoVjEstjSUaZeZRP7kZrWNqup1VvUClCaQ==","shasum":"42f708362119611d6223cd53202c79428bf70b81","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/bit-mask/-/bit-mask-1.0.2.tgz","fileCount":6,"unpackedSize":8859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa1p/BCRA9TVsSAnZWagAApJMP/ikDel9IQRNbpxjR4/u8\nYHKEpzFIyuBtqQ2uiknF4DDeNv0OK7FUTUAqFTotZ4djPQItkVkPgSqdGh7y\nvPD/kJ2/DhHEw/BlUl6ydcwHJCPD3QDcT8t9rOC8fw0szEFt5059L69+hfZM\nXfZWvHbM/GwLYweokPENWB5azp9RY0S/jDmNm5WwjdFEPfLZ/iI0LBFeBZJw\nDFO28PKNScgmphQOFenZdWUtLeZkzqESx7K6sVi/ih3QtaPLgmb1/jtFfhM/\ndsiEjsur/bdyVVInoyjq/uK8mWvmXWiddGH+mwIMwO3lbZKfrqqP1V4UnZUP\ngXEy9HWoC3KHHp1MPZkcfvtVuy0PXXpTZfbHEqjL3yqoz7r0Ny/PpWyIkauC\nyKWXYBw53PzRMrNZIKy68Pf+btNxAbh6clh0kW+CcCHZQ14CMOIfI2ydMPxI\ne5ZRDAUqcjgpvz3zHFHwhU45VILFm7/qnwA6sLDxGVdtCxxkmdJeMMsLctup\nrw1C0tkYLHcWqqpX4qFXRV46hgYAKMmpEsbnzgQTqkNsxGJzku04r/r0UYSx\nJyu15ToPGo1gPWGZNev1/k90NZJ/hZEnaCR52NwvYE3Lv/0f3azJnGBTFKOh\nM43BnzJNbR5FlL10rg4Ooow0JIWKoFeS9Qvr6IUanlxMr/ZqmmCIatFxEKoA\nEupu\r\n=Ffik\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWKbaf4lHp1T7ucndPwQ2jFkCKvwch/HdLz+Qz2amBuAIgMakEx7vKWJI7K9GoCbpUSmCOmcKj1UDEEdyNA5DxI9g="}]},"maintainers":[{"name":"anonymous","email":"abbey@khrome.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bit-mask_1.0.2_1524015040272_0.2756072193684902"},"_hasShrinkwrap":false}},"name":"bit-mask","time":{"modified":"2022-06-13T04:41:14.453Z","created":"2012-12-18T05:19:19.929Z","0.0.1-alpha":"2012-12-18T05:19:20.790Z","0.0.2-alpha":"2013-02-05T19:28:05.215Z","1.0.0":"2016-11-25T02:56:49.829Z","1.0.1":"2016-12-20T02:50:39.220Z","1.0.2":"2018-04-18T01:30:40.393Z"},"contributors":[],"readmeFilename":"README.md","homepage":"https://github.com/khrome/bit-mask"}