UNPKG

canonical

Version:

Canonical code style linter and formatter for JavaScript, SCSS and CSS.

75 lines (74 loc) 2.93 kB
{ "_args": [ [ "to-fast-properties@https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.1.tgz", "/Users/gajus/Documents/dev/canonical-code-style/canonical" ] ], "_from": "to-fast-properties@>=1.0.1 <2.0.0", "_id": "to-fast-properties@1.0.1", "_inCache": true, "_location": "/to-fast-properties", "_phantomChildren": {}, "_requested": { "name": "to-fast-properties", "raw": "to-fast-properties@https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.1.tgz", "rawSpec": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.1.tgz", "scope": null, "spec": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.1.tgz", "type": "remote" }, "_requiredBy": [ "/babel-core", "/babel-types" ], "_resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.1.tgz", "_shasum": "4a41554d2b2f4bbe2d794060dc47396b10bb48a8", "_shrinkwrap": null, "_spec": "to-fast-properties@https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.1.tgz", "_where": "/Users/gajus/Documents/dev/canonical-code-style/canonical", "author": { "email": "sindresorhus@gmail.com", "name": "Sindre Sorhus", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/to-fast-properties/issues" }, "dependencies": {}, "description": "Force V8 to use fast properties for an object", "devDependencies": { "ava": "0.0.4" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "homepage": "https://github.com/sindresorhus/to-fast-properties#readme", "keywords": [ "convert", "fast", "mode", "obj", "object", "optimize", "properties", "props", "v8" ], "license": "MIT", "name": "to-fast-properties", "optionalDependencies": {}, "readme": "# to-fast-properties [![Build Status](https://travis-ci.org/sindresorhus/to-fast-properties.svg?branch=master)](https://travis-ci.org/sindresorhus/to-fast-properties)\n\n> Force V8 to use fast properties for an object\n\n[Read more.](http://stackoverflow.com/questions/24987896/)\n\nUse `%HasFastProperties(object)` and `--allow-natives-syntax` to check whether an object already has fast properties.\n\n\n## Install\n\n```\n$ npm install --save to-fast-properties\n```\n\n\n## Usage\n\n```js\nvar toFastProperties = require('to-fast-properties');\n\nvar obj = {\n\tfoo: true,\n\tbar: true\n};\n\ndelete foo;\n// `obj` now has slow properties\n\ntoFastProperties(obj);\n// `obj` now has fast properties\n```\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/to-fast-properties.git" }, "scripts": { "test": "node --allow-natives-syntax test.js" }, "version": "1.0.1" }