{"_id":"features","_rev":"5-08b9cb54ac913ac1a26ca6b50a541f72","name":"features","description":"per-file switchable code pre-transformations","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"author":{"name":"Jann Horn","email":"jannhorn@googlemail.com"},"name":"features","description":"per-file switchable code pre-transformations","version":"0.1.0","homepage":"https://github.com/thejh/node-features","repository":{"type":"git","url":"git://github.com/thejh/node-features.git"},"dependencies":{},"devDependencies":{},"_npmUser":{"name":"thejh","email":"jannhorn@gmail.com"},"_id":"features@0.1.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-beta-7","_nodeVersion":"v0.6.7-pre","_defaultsLoaded":true,"dist":{"shasum":"c0deafd57547f4cab806dfa0fa55294e491fe14c","tarball":"https://registry.npmjs.org/features/-/features-0.1.0.tgz","integrity":"sha512-bcTwFRtfJfBe5sQJ9PkYkWUGwQF++xh7uubgNnUzxtD+1eFQFEliGwi8FCGYv3mOYh8+XYS1SB6ZXDTQD2FBbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8larAougYJs528rGMuwwoxbX3KN1c7adXJ+AiquIGqQIhAJTfZNc4EonBdOw3xTicrkgJkXmYHM3ZGuKAy4s87i3S"}]},"maintainers":[{"name":"thejh","email":"jannhorn@gmail.com"}]}},"readme":"Switchable, modular, stackable features for your code. Turn on any transformations you'd like to use.\n\nUsage example:\n\n    [jann@Jann-PC tmp]$ cat test.xjs\n    // :X-FEATURE: destructure\n    \n    var a, b, c;\n    var val = [{x: 5, y: 6}, 7];\n    [{x: a, y: b}, c] = val;\n    console.log('how it should be: a=5='+a+', b=6='+b+', c=7='+c);\n    [jann@Jann-PC tmp]$ node\n    > require('features')\n    {}\n    > require('./test')\n    how it should be: a=5=5, b=6=6, c=7=7\n    {}\n\nSo, basically, for people who want to use such features:\n\n - install `feature-<name>` modules for the features you want\n - use `.xjs` as file extension\n - in your main script, do this on top: `require('features')`\n - in your scripts, put lines like this one **ON TOP** (no lines, even no empty ones, may be on top of them): `// :X-FEATURE: destructure`\n\nNote that your main script can't use such features - you might want to use a shim script.\n\nAlso note that although this module should just work, the `destructure` feature doesn't do some important things as of 15.01.2012\n(most importantly, caching results).\n\nFor people who want to make features:\n\n - make a new npm package named `feature-<name>`\n - in its main file, add a function `transformCodeString(code)` to the exports\n\nSee https://github.com/thejh/node-feature-destructure/ for an example.\n","maintainers":[{"name":"thejh","email":"jannhorn@gmail.com"}],"time":{"modified":"2022-06-18T00:01:48.695Z","created":"2012-01-15T01:44:27.250Z","0.1.0":"2012-01-15T01:44:29.281Z"},"author":{"name":"Jann Horn","email":"jannhorn@googlemail.com"},"repository":{"type":"git","url":"git://github.com/thejh/node-features.git"}}