{"_id":"@altipla/feature-flags","name":"@altipla/feature-flags","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@altipla/feature-flags","type":"module","version":"0.1.0","scripts":{"build":"obuild","lint":"tsc --noEmit && oxlint","fix":"oxlint --fix","test":"pnpm run lint","prepublishOnly":"pnpm run build"},"description":"Feature flags client for our applications.","author":{"name":"Altipla Consulting"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/altipla-consulting/features-js.git"},"homepage":"https://github.com/altipla-consulting/features-js","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"}},"publishConfig":{"access":"public"},"dependencies":{"@buf/altipla_feature-flags.bufbuild_es":"2.14.1-20260803093603-e948497a0a08.3","@bufbuild/protobuf":"^2.14.1","@connectrpc/connect":"^2.1.2","@connectrpc/connect-node":"^2.1.2"},"devDependencies":{"@altipla/oxlint-config":"^0.1.6","@types/node":"^26.4.1","@vue/tsconfig":"^0.9.1","obuild":"^0.4.39","oxlint":"^1.81.0","oxlint-tsgolint":"^7.0.2001","prettier":"^3.8.1","typescript":"^6.0.3"},"gitHead":"ec56735e7fefd5a069cb6c39b114cf10a6426dc3","_id":"@altipla/feature-flags@0.1.0","bugs":{"url":"https://github.com/altipla-consulting/features-js/issues"},"_nodeVersion":"24.18.1","_npmVersion":"11.16.0","dist":{"integrity":"sha512-dhlJ59b9nYB5sudF3yYxNth1LUK0TqG7iH4LZBVhd6znTS5rEs5T2uINZZKndVrhURgd+h75EPdu7EQ1TCHHqA==","shasum":"a514ccc791bc9f50fc9534e789e16d60790779d6","tarball":"https://registry.npmjs.org/@altipla/feature-flags/-/feature-flags-0.1.0.tgz","fileCount":7,"unpackedSize":5149,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD0GUKyBJw1OE7LLnmi0/lSfh/46ZszF7XeWRpmTORjwgIhAPkcQ9boPZTCNsTR7fMvTb7jeCc1vsLzmfHL+BHIpfCi"}]},"_npmUser":{"name":"ernestoalejo","email":"contact@ernestoalejo.me"},"directories":{},"maintainers":[{"name":"ernestoalejo","email":"contact@ernestoalejo.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/feature-flags_0.1.0_1788857137757_0.11250422557358997"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-08T08:45:37.479Z","0.1.0":"2026-09-08T08:45:37.881Z","modified":"2026-09-08T08:45:38.212Z"},"maintainers":[{"name":"ernestoalejo","email":"contact@ernestoalejo.me"}],"description":"Feature flags client for our applications.","homepage":"https://github.com/altipla-consulting/features-js","repository":{"type":"git","url":"git+https://github.com/altipla-consulting/features-js.git"},"author":{"name":"Altipla Consulting"},"bugs":{"url":"https://github.com/altipla-consulting/features-js/issues"},"license":"MIT","readme":"# feature-flags\n\nFeature flags client for our applications.\n\n## Install\n\nBefore installing the package, create an `.npmrc` file in the project root with the following line:\n\n```ini\n@buf:registry=https://buf.build/gen/npm/v1/\n```\n\n```shell\npnpm add @altipla/feature-flags\n```\n\n## Usage\n\nConfigure the project once.\n\n```ts\nimport { configure, flag } from '@altipla/feature-flags'\n\nconfigure({\n  project: 'repository_name',\n})\n```\n\nOnce configured, use `flag` to check whether a feature flag is enabled:\n\n```ts\nconst enabled = await flag('my-feature')\n```\n\nOn error or timeout the check returns `false`.\n","readmeFilename":"README.md","_rev":"1-8daff97b881f0f5b695ada0c5f8cd338"}