1.2.16 • Published 1 year ago

icontext v1.2.16

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year 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

1 year ago

1.2.14

1 year ago

1.2.15

1 year ago

1.2.12

1 year ago

1.2.13

1 year ago

1.2.10

1 year ago

1.2.11

1 year ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago