{"name":"react-tools","version":"0.8.0","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":["README.md","main.js","bin/jsx","build/modules/","src/","vendor/fbtransform/","vendor/constants.js"],"main":"main.js","bin":{"jsx":"./bin/jsx"},"repository":{"type":"git","url":"https://github.com/facebook/react"},"scripts":{"test":"grunt build && grunt test"},"dependencies":{"commoner":"~0.8.8","esprima-fb":"~2001.1001.0-dev-harmony-fb","jstransform":"~2.0.1"},"devDependencies":{"browserify":"~2.36.1","wrapup":"~0.12.0","envify":"~0.2.0","populist":"~0.1.5","grunt-cli":"~0.1.9","grunt":"~0.4.1","grunt-contrib-copy":"~0.4.1","grunt-contrib-jshint":"~0.6.0","optimist":"~0.6.0","phantomjs":"~1.9","recast":"~0.4.24","semver":"~2.2.1","uglify-js":"~2.4.0","grunt-contrib-clean":"~0.5.0","grunt-compare-size":"~0.4.0","gzip-js":"~0.3.2","tmp":"~0.0.18","grunt-contrib-compress":"~0.5.1"},"engines":{"node":">=0.10.0"},"preferGlobal":true,"description":"React is a JavaScript library for building user interfaces.","_id":"react-tools@0.8.0","dist":{"shasum":"6dd33a007cee4d51560f14b8fa035bdb3fcd92db","tarball":"http://registry-npm.ywwl.com/react-tools/download/react-tools-0.8.0.tgz","integrity":"sha512-AV3Gd+aCFAZVuY+HZPgOEMsYb0PNXRX7DwhNyioyPu5K6dd3X1NPw59YleBQ9s1l7IpzApsEQoCWh/wyOwMe8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoi0zLoq4+fCC40tVS5x2yot63VQrUTAU7tO80gWLraQIhAL9IarH+qQ9xXB2H1AmaRzpr5/bB8+Pwena0AsdyFZFt"}],"size":333674,"noattachment":false,"key":"/react-tools/-/react-tools-0.8.0.tgz"},"_resolved":"react-tools-0.8.0.tgz","_from":"react-tools-0.8.0.tgz","_npmVersion":"1.3.14","_npmUser":{"name":"zpao","email":"paul@oshannessy.com"},"maintainers":[{"name":"zpao","email":"paul@oshannessy.com"}],"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":1387479496702,"_cnpm_publish_time":1387479496702,"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"}}