1.2.16 • Published 6 days ago

icontext v1.2.16

Weekly downloads
-
License
ISC
Repository
-
Last release
6 days ago

#icontext

Usage

Classic ContextFactory

import { ContextFactory } from 'icontext';
const contextFactory = new ContextFactory({}); // single instance for application lifetime
await contextFactory.build(); // per request

Sync call on application start

Add to script or next.config.js: Warining: uses process.swapwnSync, in all possible cases prefer async version instead

const { buildSync } = require('icontext');
buildSync();

Using --require

node -r icontext/config script.js

Migration from @ilb/node_context:

npm uninstall @ilb/node_context @ilb/node_ldap
npm install icontext
grep -Rl @ilb/node_context src|xargs sed -i "s^ContextFactory from '@ilb/node_context'^{ ContextFactory } from 'icontext'^"
1.2.16

6 days ago

1.2.14

7 days ago

1.2.15

6 days ago

1.2.12

19 days ago

1.2.13

19 days ago

1.2.10

4 months ago

1.2.11

4 months ago

1.1.10

12 months ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago