{"name":"@swc-node/core","version":"1.9.1","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.1","homepage":"https://github.com/swc-project/swc-node","bugs":{"url":"https://github.com/swc-project/swc-node/issues"},"dist":{"shasum":"f86d6be5f97beaff91786f0266734ec85e8456c7","tarball":"http://registry-npm.ywwl.com/@swc-node/core/download/@swc-node/core-1.9.1.tgz","fileCount":7,"integrity":"sha512-Mh4T/PmQOpPtqw1BNvU38uWzsXbd5RJji17YBXnj7JDDE5KlTR9sSo2RKxWKDVtHbdcD1S+CtyZXA93aEWlfGQ==","signatures":[{"sig":"MEUCIQDYaEhSHdOtDcZ9JqVknAuocQV5NNJ7XlpXfdNRAD7CdwIgdlUD2/eIyARtRhcJ+0b73XTeYF63AEfET2V9b6Ol5+U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34403,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjK9ZIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpsiQ//R7NtbFFwdrDg8cRTDUpyCgelRSoAsXWoOfzXAv6JuHXBJG2l\r\noeLQokrNNb5mqD6uv2VjxWyzTrHYzgRXf0xSlMkLsdli7h7vIVBGIrJlDahR\r\nWez7nVl9RhEGNo8hwnc2/E+c6wrrQySOqEdM5To72aqO13NhHLdAHeMZJ7oS\r\nXOpp/yIxZ2KCv0Wcgb6yeXhV9d2fVEoKuqbQMf7OdjXpFimRG2aKCxubSmkP\r\nBMnyRsQQflNjJlUWJM1YvOeOcTwv+mzspubRrOACi1C8IdO32L0kO4IH6K9G\r\nUvXdd53KJVE+VPNAcrituYHIeeJYLzFRpIOJ/SxI3F3+aNeqRQlbPIjJcAvz\r\nYm3gth1pks+a2jlmuUXMFLe62VhgiphCY5oOrRe9Nt1Lj25/DVyo9Ymn+kQ/\r\n9YCCgRGNYNmJH3heD2Fn3GtE6W0zHJ5IBwPpaNZxuRnw9qsYZyUV56WiWbkq\r\nCwG0X3yOJOwu+6YhF1bD6I9k2yr581zSoASqaVfCIe/RZkTA5Cec0SGzsido\r\n3RJN/tQUXJ5zUtJ/ohKNk2bd4iBvnb4dEAEynDAGKE4eUVz6m0wWqpQUJQfZ\r\nG6N6KMaUGzT8GlaGeL1+hVZDWbyR39x0vNg91VUUGWMB/SW/M821xTm1XUP+\r\nCI8YAyrCDFrEBpwIoLpkzWJFur+Uu7RNZ7c=\r\n=Dz5r\r\n-----END PGP SIGNATURE-----\r\n","size":11844,"noattachment":false,"key":"/@swc-node/core/-/@swc-node/core-1.9.1.tgz"},"main":"lib/index.js","engines":{"node":">= 10"},"funding":{"url":"https://github.com/sponsors/Brooooooklyn","type":"github"},"gitHead":"ad0d23bf19eb14ca9dc7e90fd707682bf2772dec","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/5.1.2/node@v16.17.0+x64 (linux)","description":"Faster swc nodejs binding","directories":{},"_nodeVersion":"16.17.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"peerDependencies":{"@swc/core":">= 1.3"},"_npmOperationalInternal":{"tmp":"tmp/core_1.9.1_1663817287991_0.28510157903038014","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":1663817288203,"maintainers":[{"name":"broooooklyn","email":"lynweklm@gmail.com"}],"_cnpm_publish_time":1663817288203,"dist-tags":{"latest":"1.15.0"}}