![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@powertools/options
Advanced tools
an agnostic feature flag implementation that enables you to overload in code, querystring and api, like launchdarkly
$ npm install @powertools/options
I'm calling this "Options", since featureflags is taken the goal is to develop an agnostic approach that is not dependent on react, redux, etc.
It should allow the developer to specify options (flags) in multiple ways...
e.g. http://your-domain.com?options=flag1,-flag2,+flag3&flag4=four
would turn flag1 On (true), and flag2 and flag3 Off (false)
options will look something like {
flag1: true,
flag2: false,
flag3: true,
flag4: 'four',
}
import theOptions from '@powertools/options'
describe('Options', () => {
test('Options.options', () => {
expect(Object.keys(theOptions.list).length).toBeGreaterThan(0)
})
test('addQueryString', async () => {
theOptions.set({})
expect(theOptions.list).toEqual({})
theOptions.addQueryString('options=flag1,-flag2,+flag3&flag4=four')
expect(theOptions.list.flag1).toBeTruthy()
expect(theOptions.list.flag2).toBeFalsy()
expect(theOptions.list.flag3).toBeTruthy()
expect(theOptions.list.flag4).toBe('four')
})
...
FAQs
agnostic feature flags
We found that @powertools/options demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.