File: cjs.cjs

package info (click to toggle)
node-chalk 5.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 640 kB
  • sloc: javascript: 859; sh: 32; makefile: 5
file content (12 lines) | stat: -rw-r--r-- 246 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
const c = require('./index.js');

const m = c.default;
Object.keys(c).forEach(k => {
  if( k === '__proto___') {
    Object.setPrototypeOf(m, Object.getPrototypeOf(c));
  } else {
    m[k] = c[k];
  }
})
m.Instance = c.Chalk;
module.exports = m;