{"name":"react-tools","description":"A set of complementary tools to React, including the JSX transformer.","version":"0.11.1","keywords":["react","jsx","transformer","view"],"homepage":"http://facebook.github.io/react","bugs":{"url":"https://github.com/facebook/react/issues"},"licenses":[{"type":"Apache-2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"files":["main.js","bin/jsx","src/","vendor/fbtransform/"],"main":"main.js","bin":{"jsx":"./bin/jsx"},"repository":{"type":"git","url":"https://github.com/facebook/react"},"dependencies":{"commoner":"^0.9.6","esprima-fb":"^4001.3001.0-dev-harmony-fb","jstransform":"^6.0.1"},"devDependencies":{"benchmark":"~1.0.0","browserify":"^4.1.10","coverify":"~1.0.4","envify":"^2.0.0","es3ify":"~0.1.2","es5-shim":"^4.0.0","grunt":"~0.4.2","grunt-cli":"~0.1.9","grunt-compare-size":"~0.4.0","grunt-contrib-clean":"~0.5.0","grunt-contrib-compress":"^0.9.1","grunt-contrib-connect":"~0.6.0","grunt-contrib-copy":"~0.5.0","grunt-contrib-jshint":"^0.10.0","gzip-js":"~0.3.2","jasmine-tapreporter":"~0.2.2","jest-cli":"~0.1.5","lodash":"~2.4.1","microtime":"^0.6.0","optimist":"~0.6.0","phantomjs":"~1.9","platform":"^1.1.0","populist":"~0.1.6","recast":"~0.5.6","sauce-tunnel":"~1.1.0","semver":"^2.3.0","tmp":"~0.0.18","uglify-js":"~2.4.0","uglifyify":"^2.4.0","wd":"~0.2.6"},"engines":{"node":">=0.10.0"},"preferGlobal":true,"commonerConfig":{"version":4},"scripts":{"test":"grunt test"},"jest":{"rootDir":"src","scriptPreprocessor":"../jest/preprocessor.js","setupEnvScriptFile":"../jest/environment.js","unmockedModulePathPatterns":[""]},"_id":"react-tools@0.11.1","_shasum":"931bd84cb3eb19b87be13c5b1f09f0cbe8748728","_resolved":"react-tools.tgz","_from":"react-tools.tgz","_npmVersion":"1.4.14","_npmUser":{"name":"zpao","email":"paul@oshannessy.com"},"maintainers":[{"name":"zpao","email":"paul@oshannessy.com"},{"name":"jeffmo","email":"jeff@anafx.com"}],"dist":{"shasum":"931bd84cb3eb19b87be13c5b1f09f0cbe8748728","tarball":"http://registry-npm.ywwl.com/react-tools/download/react-tools-0.11.1.tgz","integrity":"sha512-WJxqBRRLOLa8hvbcMGeu2DqWFY/G9TeVyWK6IFDk+79h2IFpEyIp9ks33H7XAauXX40aGDO4rnNCjKluuT0QxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBKy1aVl2bUmEKYrUjixTyUyzH2lGVbz5y9sUPv/FeOhAiALC6L/SsnYGzoleVF8NXcAFPur1Bx/Vsb5+1Sx7bv0gQ=="}],"size":264781,"noattachment":false,"key":"/react-tools/-/react-tools-0.11.1.tgz"},"deprecated":"react-tools is deprecated. For more information, visit https://fb.me/react-tools-deprecated","directories":{},"readme":"# react-tools\n\nThis package compliments the usage of [React](https://facebook.github.io/react/). It ships with tools that are often used in conjunction.\n\n## JSX\n\nThis package installs a `jsx` executable that can be used to transform JSX into vanilla JS. This is often used as part of a build step. This transform is also exposed as an API.\n\nBy default JSX files with a `.js` extension are transformed. Use the `-x` option to transform files with a `.jsx` extension.\n\n## Usage\n\n### Command Line\n\n    Usage: jsx [options] <source directory> <output directory> [<module ID> [<module ID> ...]]\n\n    Options:\n\n      -h, --help                               output usage information\n      -V, --version                            output the version number\n      -c, --config [file]                      JSON configuration file (no file or - means STDIN)\n      -w, --watch                              Continually rebuild\n      -x, --extension <js | coffee | ...>      File extension to assume when resolving module identifiers (default: js)\n      --relativize                             Rewrite all module identifiers to be relative\n      --follow-requires                        Scan modules for required dependencies\n      --cache-dir <directory>                  Alternate directory to use for disk cache\n      --no-cache-dir                           Disable the disk cache\n      --source-charset <utf8 | win1252 | ...>  Charset of source (default: utf8)\n      --output-charset <utf8 | win1252 | ...>  Charset of output (default: utf8)\n      --harmony                                Turns on JS transformations such as ES6 Classes etc.\n      --source-map-inline                      Embed inline sourcemap in transformed source\n      --strip-types                            Strips out type annotations\n      --es6module                              Parses the file as a valid ES6 module\n      --non-strict-es6module                   Parses the file as an ES6 module, except disables implicit strict-mode (i.e. CommonJS modules et al are allowed)\n      --target <version>                       Target version of ECMAScript. Valid values are \"es3\" and \"es5\". Use \"es3\" for legacy browsers like IE8.\n\n## API\n\n### `transform(inputString, options)`\n\noption | values | default\n-------|--------|---------\n`sourceMap` | `true`: append inline source map at the end of the transformed source | `false`\n`harmony` | `true`: enable ES6 features | `false`\n`sourceFilename` | the output filename for the source map | `\"source.js\"`\n`stripTypes` | `true`: strips out type annotations | `false`\n`es6module` | `true`: parses the file as an ES6 module | `false`\n`nonStrictEs6module` | `true`: parses the file as an ES6 module, except disables implicit strict-mode (i.e. CommonJS modules et al are allowed) | `false`\n`target` | `\"es3\"`: ECMAScript 3<br>`\"es5\"`: ECMAScript 5| `\"es5\"`\n\n```js\nvar reactTools = require('react-tools');\n\nreactTools.transform(string, options);\n```\n\n### `transformWithDetails(inputString, options)`\n\nJust like `transform`, but outputs an object:\n```js\n{\n  code: outputString,\n  sourceMap: theSourceMap // Only if the `sourceMap` option is `true`.\n}\n```\n","publish_time":1406313389940,"_cnpm_publish_time":1406313389940,"dist-tags":{"0.10.0-rc1":"0.10.0-rc1","0.11.0-rc1":"0.11.0-rc1","latest":"0.13.3","next":"0.14.0-alpha3"}}