Comparing version 0.0.0 to 1.0.0
{ | ||
"name" : "prr" | ||
, "description" : "A better Object.defineProperty()" | ||
, "version" : "0.0.0" | ||
, "homepage" : "https://github.com/rvagg/prr" | ||
, "authors" : [ | ||
"Rod Vagg <rod@vagg.org> (https://github.com/rvagg)" | ||
] | ||
, "keywords" : [ "property", "properties", "defineProperty", "ender" ] | ||
, "main" : "./prr.js" | ||
, "repository" : { | ||
"type" : "git" | ||
, "url" : "https://github.com/rvagg/prr.git" | ||
} | ||
, "dependencies" : {} | ||
, "devDependencies" : { | ||
"tap" : "*" | ||
} | ||
, "scripts": { | ||
"test" : "node ./test.js" | ||
} | ||
, "license" : "MIT" | ||
} | ||
"name": "prr", | ||
"description": "A better Object.defineProperty()", | ||
"version": "1.0.0", | ||
"homepage": "https://github.com/rvagg/prr", | ||
"author": "Rod Vagg <rod@vagg.org> (https://github.com/rvagg)", | ||
"keywords": [ | ||
"property", | ||
"properties", | ||
"defineProperty", | ||
"ender" | ||
], | ||
"main": "./prr.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/rvagg/prr.git" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"tap": "*" | ||
}, | ||
"scripts": { | ||
"test": "node ./test.js" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -7,3 +7,3 @@ # prr [![Build Status](https://secure.travis-ci.org/rvagg/prr.png)](http://travis-ci.org/rvagg/prr) | ||
Set the property `'foo'` (`obj.foo`) to have the value `'bar'` with default options (*enumerable, configurable and writable are all false*): | ||
Set the property `'foo'` (`obj.foo`) to have the value `'bar'` with default options (`'enumerable'`, `'configurable'` and `'writable'` are all `false`): | ||
@@ -28,4 +28,6 @@ ```js | ||
But obviously, having to write out the full options object makes it nearly as bad as the original `Object.defineProperty()` so we can **simplify**. | ||
### Simplify! | ||
But obviously, having to write out the full options object makes it nearly as bad as the original `Object.defineProperty()` so we can simplify. | ||
As an alternative method we can use an options string where each character represents a option: `'e'=='enumerable'`, `'c'=='configurable'` and `'w'=='writable'`: | ||
@@ -32,0 +34,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2
0
47
10809