alternative-facts
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "alternative-facts", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "JS lib that intercepts code and delivers incorrect values", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,2 +1,37 @@ | ||
[![Build Status](https://travis-ci.org/Kevnz/fuxor.png?branch=master)](https://travis-ci.org/Kevnz/alternative-facts) | ||
# alternative-facts | ||
## When you want to make the truth false. | ||
JS lib that intercepts code and delivers incorrect values | ||
### API | ||
#### Setup | ||
```:javascript | ||
// require | ||
const alternativeFacts = require('alternative-facts') | ||
const af = alternativeFacts('format'); | ||
//override any method or property named format | ||
const util = require('util'); | ||
const result = tools.format('%s:%s','foo','bar'); | ||
// result will be scrambled from "foo:bar" | ||
``` | ||
#### reset | ||
```:javascript | ||
af.reset(); | ||
const util2 = require('util'); | ||
const result2 = utils2.format('%s:%s','foo','bar'); | ||
// result is now "foo:bar" | ||
``` | ||
#### init | ||
```:javascript | ||
af.reset(); | ||
af.init('format'); | ||
const util3 = require('util'); | ||
const result3 = utils3.format('%s:%s','foo','bar'); | ||
// scambled again | ||
``` | ||
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9670
10
38
0