{"_id":"@bussin/feature-flag-client","name":"@bussin/feature-flag-client","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@bussin/feature-flag-client","version":"0.1.0","description":"A feature flag client wrapper for LaunchDarkly.","author":{"name":"wesley.thorsen@gmail.com"},"license":"MIT","private":false,"repository":{"type":"github","url":"git+https://github.com/bussin-io/feature-flag-client.git"},"keywords":["logging","logger","context","winston","console","async_hooks"],"exports":{".":{"import":"./dist-es/index.js","require":"./dist-cjs/index.js","types":"./dist-types/index.d.ts"},"./winston":{"import":"./dist-es/winston/index.js","require":"./dist-cjs/winston/index.js","types":"./dist-types/winston/index.d.ts"}},"scripts":{"build":"npm run clean && npm ci && concurrently 'npm:build:cjs' 'npm:build:es' 'npm:build:types'","build:cjs":"tsc -p tsconfig.cjs.json && tsc-alias","build:es":"tsc -p tsconfig.es.json && tsc-alias","build:types":"tsc -p tsconfig.types.json && tsc-alias","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"eslint --fix */**/*.ts && prettier --write */**/*.ts","test":"jest"},"devDependencies":{"@eslint/js":"^9.19.0","@tsconfig/recommended":"1.0.1","@types/jest":"^29.5.14","@types/node":"^20.11.19","@types/winston":"^2.4.4","concurrently":"7.0.0","eslint":"^9.19.0","eslint-config-prettier":"^10.0.1","eslint-plugin-import":"^2.31.0","jest":"^29.7.0","prettier":"^3.3.3","rimraf":"^5.0.7","ts-jest":"^29.2.5","ts-node":"^10.9.2","tsc-alias":"^1.8.10","tsconfig-paths":"^4.2.0","typescript":"^5.7.3","typescript-eslint":"^8.21.0"},"dependencies":{"@launchdarkly/js-server-sdk-common":"^2.15.2","@launchdarkly/node-server-sdk":"^9.9.2","@sinclair/typebox":"^0.34.33","winston":"^3.17.0"},"_id":"@bussin/feature-flag-client@0.1.0","bugs":{"url":"https://github.com/bussin-io/feature-flag-client/issues"},"homepage":"https://github.com/bussin-io/feature-flag-client#readme","_nodeVersion":"20.19.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-21jv7meOzlkE4IoFRE+muAJoq6h+6SJzPYgfmg0E6J8PbPP6PsKqGByfLFyjMLRHMMUfTQCXlEk4Ie0LK5T9sQ==","shasum":"d77fe6f4c073526b3ad1234c56c10435bedfd3b5","tarball":"https://registry.npmjs.org/@bussin/feature-flag-client/-/feature-flag-client-0.1.0.tgz","fileCount":51,"unpackedSize":25332,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDscxObn8WExIJDuQxZVO2NdBNJ0JZNhcdwfJVGi0q2FwIhAPoiMicZm+J2eFyxeNptm1ltQuO7Ys7iJwf2hzlMf0Nr"}]},"_npmUser":{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com"},"directories":{},"maintainers":[{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/feature-flag-client_0.1.0_1749704728508_0.29730554583642355"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-12T05:05:28.429Z","0.1.0":"2025-06-12T05:05:28.680Z","modified":"2025-06-12T05:05:29.050Z"},"maintainers":[{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com"}],"description":"A feature flag client wrapper for LaunchDarkly.","homepage":"https://github.com/bussin-io/feature-flag-client#readme","keywords":["logging","logger","context","winston","console","async_hooks"],"repository":{"type":"github","url":"git+https://github.com/bussin-io/feature-flag-client.git"},"author":{"name":"wesley.thorsen@gmail.com"},"bugs":{"url":"https://github.com/bussin-io/feature-flag-client/issues"},"license":"MIT","readme":"# @bussin/feature-flag-client\n\n[![NPM Version](https://img.shields.io/npm/v/@bussin/feature-flag-client)](https://npmjs.com/package/@bussin/feature-flag-client) [![NPM Version](https://img.shields.io/npm/dw/@bussin/feature-flag-client)](https://npmjs.com/package/@bussin/feature-flag-client) [![NPM Version](https://img.shields.io/bundlephobia/min/@bussin/feature-flag-client)](https://npmjs.com/package/@bussin/feature-flag-client)\n\nAdditional functionality for the @sinclair/typebox library.\n\nLicense: [MIT](https://opensource.org/licenses/MIT)\n\n## Installation\n\n```bash\n    npm install @bussin/feature-flag-client\n```\n\n## Quick Start\n\n```TypeScript\nimport { LaunchDarkly } from '@bussin/feature-flag-client';\n\nconst client = LaunchDarkly.getClient('sdk-1234');\n\nconst logger: IContextLogger = createLogger({ level: 'debug' });\n\nawait logger.addContext({ traceId: 1234 }, async context => {\n    logger.info(\"this will contain traceId in log's json\");\n\n\n\n});\n\n```\n\n## Metadata\n\n```TypeScript\nimport { createLogger, IContextLogger } from '@bussin/feature-flag-client';\n\nconst logger: IContextLogger = createLogger({ level: 'debug' });\n\nawait logger.addContext({ traceId: 1234 }, async context => {\n    logger.info(\"this will contain traceId in log's json\");\n});\n\n```\n\n## Contributing\n\nTo contribute, all PRs should target the `develop` branch. Feature branches must be rebased onto the latest `develop` commit before merging to keep a linear git history.\n\nThis repo uses the [googleapis/release-please-action](https://github.com/googleapis/release-please-action) GitHub Action which requires [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) messages. The commit messages are used to determine package versioning automatically so it is important that they are in the correct format. Incorrect commit messages will cause the build and release to fail.\n\n## Publishing\n\nPackage releases are handled through the [Release](https://github.com/bussin-io/feature-flag-client/actions/workflows/release.yml) GitHub Action via [googleapis/release-please-action](https://github.com/googleapis/release-please-action). A workflow run will be triggered automatically when code is merged to the `develop` branch. This creates a subsequent \"release\" PR, also targeting `develop`, that can optionally be merged if a release is desired. If the release PR is merged another run of the Release GitHub Action will be triggered, this time executing the \"publish\" job, which currently requires manual approval by [Wesley Thorsen](https://github.com/wesleythorsen1). Once approved, a GitHub Release will be created and the package will be published to NPM.\n\n## Support\n\nPlease create a PR if you find any missing functionality that you's like to add. For bugs, please use the [issues tracker](https://github.com/bussin-io/feature-flag-client/issues). I'd be happy to help you!\n","readmeFilename":"README.md","_rev":"1-a787fb304c66e593c74d76f3a3056e65"}