mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
8 lines
236 B
TypeScript
8 lines
236 B
TypeScript
import sloc = require('sloc');
|
|
|
|
const stats = sloc('const a = 1;\nconsole.log(a);', 'js');
|
|
const statsDebugged = sloc('const a = 1;\nconsole.log(a);', 'ts', { debug: true });
|
|
|
|
const keys = sloc.keys;
|
|
const extensions = sloc.extensions;
|