
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@croct/rule-engine-audiences
Advanced tools
Audiences Extension
A Rule Engine extension for audience targeting.
📦Releases
·
🐞Report Bug
·
✨Request Feature
The recommended way to install this plugin is using NPM. It pairs nicely with module bundlers such as Rollup, Webpack or Browserify and includes Typescript typings.
Run the following command to install the latest version:
npm install @croct/rule-engine-audiences
import croct from '@croct/plug';
import '@croct/rule-engine';
import '@croct/rule-engine-audiences';
croct.plug({
plugins: {
rules: {
extensions: {
audiences: {
map: {
'returning-users': 'user is returning',
},
defaultOptions: {
timeout: 300,
},
},
},
pages: {
'/home': [
{
rules: [
{
name: 'welcome-returning-users',
properties: {
audience: 'returning-users',
}
}
]
}
]
}
},
},
});
Contributions to the package are always welcome!
Before running the test suites, the development dependencies must be installed:
npm install
Then, to run all tests:
npm run test
Run the following command to check the code against the style guide:
npm run lint
Before building the project, the dependencies must be installed:
npm install
Then, to build the CommonJS module:
npm run build
This project is released under the MIT License.
FAQs
A rule engine extension for audience targeting.
We found that @croct/rule-engine-audiences demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.