{"name":"@swc-node/core","version":"1.9.0","keywords":["swc","babel","esbuild","rust","n-api","napi","node-rs","uglify","napi-rs","terser","webpack","ts-node","typescript","tsc"],"author":{"name":"LongYinan","email":"github@lyn.one"},"license":"MIT","_id":"@swc-node/core@1.9.0","homepage":"https://github.com/swc-project/swc-node","bugs":{"url":"https://github.com/swc-project/swc-node/issues"},"dist":{"shasum":"f5208d575c1aed5a2cab7e4c04e46aca34d8c240","tarball":"http://registry-npm.ywwl.com/@swc-node/core/download/@swc-node/core-1.9.0.tgz","fileCount":7,"integrity":"sha512-vRnvsMtL9OxybA/Wun1ZhlDvB6MNs4Zujnina0VKdGk+yI6s87KUhdTcbAY6dQMZhQTLFiC1Lnv/BuwCKcCEug==","signatures":[{"sig":"MEUCIQD5/UeOrALDAVopVczrgF28FjqXXS6gKrB5m4KWoib9sQIgYlRkxP9ocWvZHYqSUg5vlGT1H+04nYi0sF+6uGLGKmY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaSaoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq4+Q/+IfJWO9S5fGGYEiTOGd/BnQ+bjHaRDXHhbSHAkyqLnfZEP5LM\r\n5u0sbB6xbWp3JkNrBKpbl0btafFu3m6pQBTAUJnv4t1JHIFtfPlWGoQjUIX9\r\nh0BUBxq7T4h+fv+GfCVzKntNPN5V3U2UnW/datARFMyxl3tiUVuWqfcuI0t1\r\nuSkXFeNhLWKSSCxUDVTAQnNdR9900HPmxUwg6vDwJI319J1WwMyHe2wJT3uy\r\n5l4YOzNPE31n5vyCMd3DnomzPTIxp7rhsBw+SjauLa1UL5j1XEYqdX7Sv30s\r\nEqEp8H6yV8tv6B+WbR+WlWyHLJdcPFTC8YEWkBl8towb1zswyo11dS/hlh1+\r\nnMOET/2dslL2ybwKO8RR6bXPSox468NI5Py11tli8bbTd6l4BS1LvH4G8ICg\r\nrPEOQsJryYFSCLI+u3j4DgpV2tq8kPE4vX2dJn/m81hbN9tQEukEQyc/v9eh\r\n1ASsD/4T1clwSlsCyh7CbNyv42KZrHGMcquGHYuNgJuYaVzHVkZWv1Or2MWf\r\nm03fUwg/wZaXMpUf5AhiBopdgtAqN3wAhKbYnOAF6wGIXic20/jBiPYRF12t\r\n0youwHG8lg98s6U+Q4/rcf/zF2gnQ5jRrw7OwyTmM1cGFj+/GzuYG8wzMY79\r\n5bXsB8J2GQw4PUaaUCRq6kI6SMzZTGJlg5g=\r\n=68Y7\r\n-----END PGP SIGNATURE-----\r\n","size":13265,"noattachment":false,"key":"/@swc-node/core/-/@swc-node/core-1.9.0.tgz"},"main":"lib/index.js","engines":{"node":">= 10"},"funding":{"url":"https://github.com/sponsors/Brooooooklyn","type":"github"},"gitHead":"1f5e723595f9208d8ce4999d9483b4710dfdcf08","typings":"lib/index.d.ts","_npmUser":{"name":"broooooklyn","email":"lynweklm@gmail.com"},"repository":{"url":"git+https://github.com/swc-project/swc-node.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.14.2+x64 (linux)","description":"Faster swc nodejs binding","directories":{},"_nodeVersion":"16.14.2","dependencies":{"@swc/core":"^1.2.172"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_1.9.0_1651058344262_0.03195484071350552","host":"s3://npm-registry-packages"},"readme":"# `@swc-node/core`\n\n<a href=\"https://npmcharts.com/compare/@swc-node/core?minimal=true\"><img src=\"https://img.shields.io/npm/dm/@swc-node/core.svg?sanitize=true\" alt=\"Downloads\" /></a>\n\n> 🚀 Help me to become a full-time open-source developer by [sponsoring me on Github](https://github.com/sponsors/Brooooooklyn)\n\n## Benchmark\n\n> transform AjaxObservable.ts to ES2015 & CommonJS `JavaScript`.\n\n```\n@swc-node/core x 151 ops/sec ±3.74% (77 runs sampled)\n@swc/core x 107 ops/sec ±0.51% (78 runs sampled)\nesbuild x 52.89 ops/sec ±1.58% (67 runs sampled)\ntypescript x 21.08 ops/sec ±9.68% (40 runs sampled)\nTransform rxjs/AjaxObservable.ts benchmark bench suite: Fastest is @swc-node/core\n```\n\n## Usage\n\n```ts\nexport interface Options {\n  target?: 'es3' | 'es5' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020'\n  module?: 'commonjs' | 'umd' | 'amd' | 'es6'\n  sourcemap?: boolean | 'inline'\n  experimentalDecorators?: boolean\n  emitDecoratorMetadata?: boolean\n  dynamicImport?: boolean\n  esModuleInterop?: boolean\n  keepClassNames?: boolean\n  react?: Partial<ReactConfig>\n  paths?: {\n    [from: string]: [string]\n  }\n}\n\nexport interface ReactConfig {\n  /**\n   * Replace the function used when compiling JSX expressions.\n   *\n   * Defaults to `React.createElement`.\n   */\n  pragma: string\n  /**\n   * Replace the component used when compiling JSX fragments.\n   *\n   * Defaults to `React.Fragment`\n   */\n  pragmaFrag: string\n  /**\n   * Toggles whether or not to throw an error if a XML namespaced tag name is used. For example:\n   * `<f:image />`\n   *\n   * Though the JSX spec allows this, it is disabled by default since React's\n   * JSX does not currently have support for it.\n   *\n   */\n  throwIfNamespace: boolean\n  /**\n   * Toggles plugins that aid in development, such as @swc/plugin-transform-react-jsx-self\n   * and @swc/plugin-transform-react-jsx-source.\n   *\n   * Defaults to `false`,\n   *\n   */\n  development: boolean\n  /**\n   * Use `Object.assign()` instead of `_extends`. Defaults to false.\n   */\n  useBuiltins: boolean\n}\n\nexport function transformSync(\n  source: string | Buffer,\n  path: string,\n  options?: Options,\n): {\n  code: string\n  map: string\n}\n\nexport function transform(\n  source: string | Buffer,\n  path: string,\n  options?: Options,\n): Promise<{\n  code: string\n  map: string\n}>\n```\n","publish_time":1651058344444,"maintainers":[{"name":"broooooklyn","email":"lynweklm@gmail.com"}],"_cnpm_publish_time":1651058344444,"dist-tags":{"latest":"1.15.0"}}