{"_id":"@appngo-sk/mocha-chai","_rev":"8-61985f2f0330b707667e55d57211e544","name":"@appngo-sk/mocha-chai","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"@appngo-sk/mocha-chai","version":"1.0.0","description":"Peer dependencies for testing.","homepage":"https://github.com/appngo-sk/mocha-chai#readme","repository":{"type":"git","url":"git+https://github.com/romanstrazanec/appngo-sk/mocha-chai.git"},"bugs":{"url":"https://github.com/appngo-sk/packages-for-test/issues","email":"strazanec.roman@gmail.com"},"keywords":["test","testing","mocha","chai","nyc","bdd","tdd","coverage"],"author":{"name":"AppNGo","email":"appngo.sk@gmail.com","url":"https://github.com/appngo-sk"},"contributors":[{"name":"Roman Stražanec","email":"strazanec.roman@gmail.com","url":"https://github.com/romanstrazanec"}],"license":"ISC","main":".nycrc.json","peerDependencies":{"@types/chai":"^4.2.22","@types/mocha":"^9.0.0","chai":"^4.3.4","mocha":"^9.1.3","nyc":"^15.1.0","ts-node":"^10.4.0","tsconfig-paths":"^3.11.0","typescript":"^4.4.4"},"gitHead":"917abe5369dab17de3b4e9155d4f06776cf3a0f1","_id":"@appngo-sk/mocha-chai@1.0.0","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-cJvVOkfFlZG6I35V/RDk3a3fNSA0PmYR5GTZ/B9LECAbwlEdUPP6YVsrCyk4x8mKd4AAxyjIHLdnOGazMcAIYQ==","shasum":"2feb9ba7020e242e262e5b4736bface40268d698","tarball":"https://registry.npmjs.org/@appngo-sk/mocha-chai/-/mocha-chai-1.0.0.tgz","fileCount":4,"unpackedSize":7073,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDQ5zCJ41v7LqCh2BMBlhgIR0ar9/RSMSdq4h2NTzTCrAiAxCpPe0a+HHi//6Pjl+7uSPbxL3txdOeyZyuNeP+lBmg=="}]},"_npmUser":{"name":"romanstrazanec","email":"strazanec.roman@gmail.com"},"directories":{},"maintainers":[{"name":"romanstrazanec","email":"strazanec.roman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mocha-chai_1.0.0_1636282673687_0.3664288522128816"},"_hasShrinkwrap":false},"1.0.1":{"name":"@appngo-sk/mocha-chai","version":"1.0.1","description":"Dependencies for testing typescript modules.","homepage":"https://github.com/appngo-sk/mocha-chai#readme","repository":{"type":"git","url":"git+https://github.com/romanstrazanec/appngo-sk/mocha-chai.git"},"bugs":{"url":"https://github.com/appngo-sk/packages-for-test/issues","email":"strazanec.roman@gmail.com"},"keywords":["test","testing","mocha","chai","nyc","bdd","tdd","coverage"],"author":{"name":"AppNGo","email":"appngo.sk@gmail.com","url":"https://github.com/appngo-sk"},"contributors":[{"name":"Roman Stražanec","email":"strazanec.roman@gmail.com","url":"https://github.com/romanstrazanec"}],"license":"ISC","main":".nycrc.json","dependencies":{"@types/chai":"^4.2.22","@types/mocha":"^9.0.0","chai":"^4.3.4","mocha":"^9.1.3","nyc":"^15.1.0","ts-node":"^10.4.0","tsconfig-paths":"^3.11.0","typescript":"^4.4.4"},"gitHead":"bf5c422ff96b33067ea3120641be865ad85f4a31","_id":"@appngo-sk/mocha-chai@1.0.1","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-/AEHSpQ+ZgM1lVrfkdzrjAqYg0GByJupzLDWIW7DS1QH3KuPHAqDQHrb3wqY4cX5oLNYooNH6f5t6xli0qHcNQ==","shasum":"d264ffa0010cddafb561cf776e387efca4f919b1","tarball":"https://registry.npmjs.org/@appngo-sk/mocha-chai/-/mocha-chai-1.0.1.tgz","fileCount":4,"unpackedSize":7097,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCY8SdY4mNHodLAA303mBm31mKdM+xt8xcLkg0D0mWfRgIgE0hVAHBrDlSaBY1yw66IS9TJbgRP9oS+6TlPCGn3vkY="}]},"_npmUser":{"name":"romanstrazanec","email":"strazanec.roman@gmail.com"},"directories":{},"maintainers":[{"name":"simonhrmo","email":"simon.hrmo@gmail.com"},{"name":"romanstrazanec","email":"strazanec.roman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mocha-chai_1.0.1_1636761783867_0.32565170780830544"},"_hasShrinkwrap":false},"1.0.2":{"name":"@appngo-sk/mocha-chai","version":"1.0.2","description":"Dependencies for testing typescript modules.","homepage":"https://github.com/appngo-sk/mocha-chai#readme","repository":{"type":"git","url":"git+https://github.com/romanstrazanec/appngo-sk/mocha-chai.git"},"bugs":{"url":"https://github.com/appngo-sk/packages-for-test/issues","email":"strazanec.roman@gmail.com"},"keywords":["test","testing","mocha","chai","nyc","bdd","tdd","coverage"],"author":{"name":"AppNGo","email":"appngo.sk@gmail.com","url":"https://github.com/appngo-sk"},"contributors":[{"name":"Roman Stražanec","email":"strazanec.roman@gmail.com","url":"https://github.com/romanstrazanec"}],"license":"ISC","main":".nycrc","dependencies":{"@types/chai":"^4.2.22","@types/mocha":"^9.0.0","@types/node":"^16.11.7","chai":"^4.3.4","mocha":"^9.1.3","nyc":"^15.1.0","ts-node":"^10.4.0","tsconfig-paths":"^3.11.0","typescript":"^4.4.4"},"gitHead":"676fdfd11a8c96e337599461c38dce68b9c37a03","_id":"@appngo-sk/mocha-chai@1.0.2","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-Af6B3VRmxbdtVgfJ9gwc/Aq+1E2foaRglPthwG/259KM1gnUEFPgSQEwC4JrsrzhhU6jFHajiBKVC4mlzJ78jw==","shasum":"7210f05fbf09d51ea6b292db8ecfd045fe01f5a8","tarball":"https://registry.npmjs.org/@appngo-sk/mocha-chai/-/mocha-chai-1.0.2.tgz","fileCount":4,"unpackedSize":7795,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFIEDnz03KEMqwqM4diI+eKVZcWaXXKeYv6Co73Meu7+AiAkma5iugdH2Ow0SUxTnXQgT4l66gvhsSQLbbxKTWVrrQ=="}]},"_npmUser":{"name":"romanstrazanec","email":"strazanec.roman@gmail.com"},"directories":{},"maintainers":[{"name":"simonhrmo","email":"simon.hrmo@gmail.com"},{"name":"romanstrazanec","email":"strazanec.roman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mocha-chai_1.0.2_1636764057292_0.8321213995075847"},"_hasShrinkwrap":false},"1.0.3":{"name":"@appngo-sk/mocha-chai","version":"1.0.3","description":"Dependencies for testing typescript modules.","homepage":"https://github.com/appngo-sk/mocha-chai#readme","repository":{"type":"git","url":"git+https://github.com/romanstrazanec/appngo-sk/mocha-chai.git"},"bugs":{"url":"https://github.com/appngo-sk/packages-for-test/issues","email":"strazanec.roman@gmail.com"},"keywords":["test","testing","mocha","chai","nyc","bdd","tdd","coverage"],"author":{"name":"AppNGo","email":"appngo.sk@gmail.com","url":"https://github.com/appngo-sk"},"contributors":[{"name":"Roman Stražanec","email":"strazanec.roman@gmail.com","url":"https://github.com/romanstrazanec"}],"license":"ISC","main":".nycrc","dependencies":{"@types/chai":"^4.2.22","@types/mocha":"^9.0.0","@types/node":"^16.11.7","chai":"^4.3.4","mocha":"^9.1.3","nyc":"^15.1.0","ts-node":"^10.4.0","tsconfig-paths":"^3.11.0","typescript":"^4.4.4"},"gitHead":"9d847a4f3f4e9acc2219bba5d46c168ec92c5c9d","_id":"@appngo-sk/mocha-chai@1.0.3","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-V3Jy2ML6CLF+GokESJ3iNyuqn5MVPn62AzrCvK8H2T2EpOKxi6kgygNmPQwb/+FteG4la2rgQGwCYAy4BFTZhQ==","shasum":"2682fd4bc7db9ce6b0bdea973874f1190025f476","tarball":"https://registry.npmjs.org/@appngo-sk/mocha-chai/-/mocha-chai-1.0.3.tgz","fileCount":4,"unpackedSize":7950,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtTj8FO/PEdNjkdx/fwBu/8/o0MwyhY5nlQ90SRHvSvQIhAO0FEbt8rC0x913i+ctLzXYO2Fog3oa4saqrN5ZPlY34"}]},"_npmUser":{"name":"romanstrazanec","email":"strazanec.roman@gmail.com"},"directories":{},"maintainers":[{"name":"simonhrmo","email":"simon.hrmo@gmail.com"},{"name":"romanstrazanec","email":"strazanec.roman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mocha-chai_1.0.3_1636764881463_0.33585903827630426"},"_hasShrinkwrap":false},"1.0.4":{"name":"@appngo-sk/mocha-chai","version":"1.0.4","description":"Dependencies for testing typescript modules.","homepage":"https://github.com/appngo-sk/mocha-chai#readme","repository":{"type":"git","url":"git+https://github.com/romanstrazanec/appngo-sk/mocha-chai.git"},"bugs":{"url":"https://github.com/appngo-sk/packages-for-test/issues","email":"strazanec.roman@gmail.com"},"keywords":["test","testing","mocha","chai","nyc","bdd","tdd","coverage"],"author":{"name":"AppNGo","email":"appngo.sk@gmail.com","url":"https://github.com/appngo-sk"},"contributors":[{"name":"Roman Stražanec","email":"strazanec.roman@gmail.com","url":"https://github.com/romanstrazanec"}],"license":"ISC","main":".nycrc","dependencies":{"@istanbuljs/nyc-config-typescript":"^1.0.1","@types/chai":"^4.2.22","@types/mocha":"^9.0.0","@types/node":"^16.11.7","chai":"^4.3.4","mocha":"^9.1.3","nyc":"^15.1.0","source-map-support":"^0.5.20","ts-node":"^10.4.0","tsconfig-paths":"^3.11.0","typescript":"^4.4.4"},"gitHead":"3f54ed4b50e12cb5e396fa1a2ca00e6b516cf4d8","_id":"@appngo-sk/mocha-chai@1.0.4","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-d7IfpvyL4i0AZsxRv/UdhUTLUC6KFyhCy4eyeODIna9JDH6HSMhfuBpEk0zBP6bFbl/x2Eip53jm/8VyR1r25w==","shasum":"ed66555e32f441594c4ce083500116ebf9ef8a25","tarball":"https://registry.npmjs.org/@appngo-sk/mocha-chai/-/mocha-chai-1.0.4.tgz","fileCount":4,"unpackedSize":9275,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkJyhExU64LeAQcRTgYB8X5WvIsp9Oats3gyZteXaeSAIgcuFPVmXG3YgUhLv+wiTwuitvW9XxTkHy2YT90Tqgimc="}]},"_npmUser":{"name":"romanstrazanec","email":"strazanec.roman@gmail.com"},"directories":{},"maintainers":[{"name":"simonhrmo","email":"simon.hrmo@gmail.com"},{"name":"romanstrazanec","email":"strazanec.roman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mocha-chai_1.0.4_1636966843306_0.20351868307459586"},"_hasShrinkwrap":false},"1.0.5":{"name":"@appngo-sk/mocha-chai","version":"1.0.5","description":"Dependencies for testing typescript modules.","homepage":"https://github.com/appngo-sk/mocha-chai#readme","repository":{"type":"git","url":"git+https://github.com/appngo-sk/mocha-chai.git"},"bugs":{"url":"https://github.com/appngo-sk/packages-for-test/issues","email":"strazanec.roman@gmail.com"},"keywords":["test","testing","mocha","chai","nyc","bdd","tdd","coverage"],"author":{"name":"AppNGo","email":"appngo.sk@gmail.com","url":"https://github.com/appngo-sk"},"contributors":[{"name":"Roman Stražanec","email":"strazanec.roman@gmail.com","url":"https://github.com/romanstrazanec"}],"license":"ISC","main":".nycrc","dependencies":{"@istanbuljs/nyc-config-typescript":"^1.0.1","@types/chai":"^4.2.22","@types/mocha":"^9.0.0","@types/node":"^16.11.7","chai":"^4.3.4","mocha":"^9.1.3","nyc":"^15.1.0","source-map-support":"^0.5.20","ts-node":"^10.4.0","tsconfig-paths":"^3.11.0","typescript":"^4.4.4"},"gitHead":"ed563d4fc7b1663b41c1aae6fad3ee7a029ae351","_id":"@appngo-sk/mocha-chai@1.0.5","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-zo55kxC3z7TRXQwa6VyUdxQX9yhZKoPD0cWP4piz2TmepKbPv4P13nME26wRs0zGTk4KnmG93fRqDSHsovofXg==","shasum":"88d2d5af6f79e6e82fa545b13a617176e49fa37d","tarball":"https://registry.npmjs.org/@appngo-sk/mocha-chai/-/mocha-chai-1.0.5.tgz","fileCount":4,"unpackedSize":9256,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwyv8CRA9TVsSAnZWagAAF5MP/3ZQYav87nUkRBCxekfO\nYJdguoM8Z4PhXXj7xbyhhZv7LYssKBRMM6u3an5/EEiKbHKhLlH2vFy2A6fd\nEhfbfKyVi7J6aou9RKJx+HU5zzPO1T+q6K6HklxTlKtl5iBjrWlANrImBH+S\nMdBsGORilavLt0uUfs2ldVwT6GwgEnJ+U9QF65zDUe8zcToI0GgDknfuVdif\n37/G6tDLmhQO+kCIzMStxui1QzzI1dAERPshkj8bk6u4hZQqgdTpgPzaxbIq\n6XLoHm06znxZBSocfjBEJgL/sY89jm/XfHD9HFEmKv2Ixz6XX6CIAxddcqKz\nFD7wobSmwc6V/tePh7eZqiVVHR4UYcxRBrUlj1x53QzRMsGC7w9KSx7TGCFL\nWWtW9UGc1KtYk88kIB29wVB/mBzR11G6OqG88A5p+jG1lj4EvBShkTZpPRKI\nBFt+FEuYmNsHYWlV6QxuH4De+qbiPWxMTJw6CVLlHosb1xwSUdAYXXLghUT8\nIcLeqQtFrrRk1wG7AzavhEmjO7w4SrLBSX85n7+YhwxJt3SQq0cUs5NkAW0n\nfsL5Q98NpHv4snhLv6ac2JnTbNM7fLHVOzJKLpI1knd7mt9Dydqu26peqU/d\nXi/7gI9xzkoUhc7xoAxlYiNHA370bYe93cxIeBx65AHPu5Gv8LThA+EYnMnz\nw5fn\r\n=4igo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7/2oh6ZyECHFk8PAFwCGQdZDHK1gc188uoHODR1fMXAIgDZjDTOPioNOaqqJT8hNc+Wjc3Bslsnw8UH0COOc6/GE="}]},"_npmUser":{"name":"romanstrazanec","email":"strazanec.roman@gmail.com"},"directories":{},"maintainers":[{"name":"simonhrmo","email":"simon.hrmo@gmail.com"},{"name":"romanstrazanec","email":"strazanec.roman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mocha-chai_1.0.5_1636969635851_0.6594454371153624"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-07T10:57:53.625Z","1.0.0":"2021-11-07T10:57:53.795Z","modified":"2022-04-04T15:02:52.747Z","1.0.1":"2021-11-13T00:03:04.048Z","1.0.2":"2021-11-13T00:40:57.459Z","1.0.3":"2021-11-13T00:54:41.634Z","1.0.4":"2021-11-15T09:00:43.448Z","1.0.5":"2021-11-15T09:47:16.029Z"},"maintainers":[{"name":"simonhrmo","email":"simon.hrmo@gmail.com"},{"name":"romanstrazanec","email":"strazanec.roman@gmail.com"}],"description":"Dependencies for testing typescript modules.","homepage":"https://github.com/appngo-sk/mocha-chai#readme","keywords":["test","testing","mocha","chai","nyc","bdd","tdd","coverage"],"repository":{"type":"git","url":"git+https://github.com/appngo-sk/mocha-chai.git"},"contributors":[{"name":"Roman Stražanec","email":"strazanec.roman@gmail.com","url":"https://github.com/romanstrazanec"}],"author":{"name":"AppNGo","email":"appngo.sk@gmail.com","url":"https://github.com/appngo-sk"},"bugs":{"url":"https://github.com/appngo-sk/packages-for-test/issues","email":"strazanec.roman@gmail.com"},"license":"ISC","readme":"# Mocha - Chai\n\nDependencies for testing typescript modules.\n\n## Installation\n\nInstall with `npm`\n\n```shell\nnpm install --save-dev @appngo-sk/mocha-chai\n```\n\nor with `yarn`\n\n```shell\nyarn add -D @appngo-sk/mocha-chai\n```\n\n## Run script\n\n```shell\nnyc mocha --checkLeaks \\\n    -r tsconfig-paths/register \\\n    -r ts-node/register \\\n    -r source-map-support/register \\\n    \"test/**/*.test.ts\"\n```\n\n## Configuration\n\nCreate a configuration file `.nycrc` for `nyc` package inside of the project root directory with any of following\nextensions\n\n| File name       | File association |\n| --------------- | ---------------- |\n| `.nycrc`        | JSON             |\n| `.nycrc.json`   | JSON             |\n| `.nycrc.yaml`   | YAML             |\n| `.nycrc.yml`    | YAML             |\n| `nyc.config.js` | CommonJS export  |\n\nThe content of the file should `extend` this module.\n\n```json\n{\n  \"extends\": \"@appngo-sk/mocha-chai\"\n}\n```\n\n## Dependencies\n\n```json\n{\n  \"@istanbuljs/nyc-config-typescript\": \"^1.0.1\",\n  \"@types/chai\": \"^4.2.22\",\n  \"@types/mocha\": \"^9.0.0\",\n  \"@types/node\": \"^16.11.7\",\n  \"chai\": \"^4.3.4\",\n  \"mocha\": \"^9.1.3\",\n  \"nyc\": \"^15.1.0\",\n  \"source-map-support\": \"^0.5.20\",\n  \"ts-node\": \"^10.4.0\",\n  \"tsconfig-paths\": \"^3.11.0\",\n  \"typescript\": \"^4.4.4\"\n}\n```\n\n### [Typescript](https://www.npmjs.com/package/typescript)\n\n---\n\n[TypeScript](https://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional\ntypes to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS.\nTypeScript compiles to readable, standards-based JavaScript.\n\n### [Mocha](https://www.npmjs.com/package/mocha)\n\n---\n\nSimple, flexible, fun JavaScript test framework for Node.js & The Browser.\n\n**Used to run tests**\n\n```json\n{\n  \"scripts\": {\n    \"test\": \"mocha\"\n  }\n}\n```\n\n#### [Types](https://www.npmjs.com/package/@types/mocha)\n\nUsed with Typescript.\n\n### [Chai](https://www.npmjs.com/package/chai)\n\n---\n\nChai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript\ntesting framework.\n\n#### [Types](https://www.npmjs.com/package/@types/chai)\n\nUsed with typescript.\n\n### [nyc](https://www.npmjs.com/package/nyc)\n\n---\n\nJavaScript test coverage made simple.<br/>\n[Istanbul's](https://istanbul.js.org/) state of the art command line interface.\n\n```json\n{\n  \"scripts\": {\n    \"test\": \"mocha\",\n    \"coverage\": \"nyc npm run test\"\n  }\n}\n```\n\n#### [Configuring `nyc`](https://www.npmjs.com/package/nyc#configuring-nyc)\n\nThe main export is a configuration `json` file for `nyc`.\n\n```json\n{\n  \"extends\": \"@istanbuljs/nyc-config-typescript\",\n  \"all\": true,\n  \"check-coverage\": true,\n  \"reporter\": [\n    \"text\",\n    \"html\"\n  ]\n}\n```\n\n##### [TypeScript projects](https://www.npmjs.com/package/nyc#typescript-projects)\n\nPlease start with the\npre-configured [`@istanbuljs/nyc-config-typescript`](https://www.npmjs.com/package/@istanbuljs/nyc-config-typescript)\npreset.\n\n##### [Configuration options](https://www.npmjs.com/package/nyc#common-configuration-options)\n\n| Option name      | Description                                                                               | Value                                                                                                                                                     | Default |\n| ---------------- | ----------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |\n| `all`            | Whether or not to instrument all files (not just the ones touched by your test suite)     | `true`                                                                                                                                                    | `false` |\n| `check-coverage` | Check whether coverage is within thresholds, fail if not                                  | `true`                                                                                                                                                    | `false` |\n| `reporter`       | [Coverage reporters to use](https://istanbul.js.org/docs/advanced/alternative-reporters/) | [`text`](https://istanbul.js.org/docs/advanced/alternative-reporters/#html), [`html`](https://istanbul.js.org/docs/advanced/alternative-reporters/#html)  | `text`  |\n\n### [nyc config typescript](https://www.npmjs.com/package/@istanbuljs/nyc-config-typescript)\n\n---\n\nHandy default configuration for instrumenting your TypeScript-backed project with test coverage using `nyc`.\n\n#### .nycrc\n\n```json\n{\n  \"extends\": \"@istanbuljs/nyc-config-typescript\"\n}\n```\n\n### [Source map support](https://www.npmjs.com/package/source-map-support)\n\n---\n\nThis module provides source map support for stack traces in node via\nthe [V8 stack trace API](https://github.com/v8/v8/wiki/Stack-Trace-API). It uses\nthe [source-map](https://github.com/mozilla/source-map)\nmodule to replace the paths and line numbers of source-mapped files with their original paths and line numbers. The\noutput mimics node's stack trace format with the goal of making every compile-to-JS language more of a first-class\ncitizen. Source maps are completely general (not specific to any one language) so you can use source maps with multiple\ncompile-to-JS languages in the same node process.\n\n### [ts-node](https://www.npmjs.com/package/ts-node)\n\n---\n\n`ts-node` is a TypeScript execution engine and REPL for Node.js.\n\nIt JIT transforms TypeScript into JavaScript, enabling you to directly execute TypeScript on Node.js without\nprecompiling. This is accomplished by hooking node's module loading APIs, enabling it to be used seamlessly alongside\nother Node.js tools and libraries.\n\n#### [Use with mocha](https://typestrong.org/ts-node/docs/recipes/mocha/)\n\n```shell\nmocha -r ts-node/register\n```\n\n#### [Types](https://www.npmjs.com/package/@types/node)\n\nTypes for node.\n\n### [tsconfig-paths](https://www.npmjs.com/package/tsconfig-paths)\n\n---\n\nUse this to load modules whose location is specified in the `paths` section of `tsconfig.json`. Both loading at run-time\nand via API are supported.\n\nTypescript by default mimics the Node.js runtime resolution strategy of modules. But it also allows the use\nof [path mapping](https://www.typescriptlang.org/docs/handbook/module-resolution.html), which allows arbitrary module\npaths (that doesn't start with \"/\" or \".\")\nto be specified and mapped to physical paths in the filesystem. The typescript compiler can resolve these paths\nfrom `tsconfig` so it will compile OK. But if you then try to execute the compiled files with node (or ts-node), it will\nonly look in the `node_modules` folders all the way up to the root of the filesystem and thus will not find the modules\nspecified by paths in `tsconfig`.\n\nIf you require this package's `tsconfig-paths/register` module it will read the `paths` from `tsconfig.json`\nand convert node's module loading calls into to physical file paths that node can load.\n\n#### Use with mocha and ts-node\n\nYou also have to specify a glob that includes `.ts` files because mocha looks after files with `.js` extension by\ndefault.\n\n```shell\nmocha -r ts-node/register -r tsconfig-paths/register \"test/**/*.ts\"\n```\n","readmeFilename":"README.md"}