@identity-js/string-identity 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. package/README.md +40 -0
  2. package/index.js +717 -0
  3. package/license +24 -0
  4. package/package.json +347 -0
  5. package/test/index.js +1258 -0
package/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # 🆔 `string-identity`
2
+
3
+ ## What's this?
4
+
5
+ This project provides a robust, highly modular, and massively dependent implementation of the simple string identity function (`f(x) = x`). We believe in the principle of **10x Engineering**: why use a single line of JavaScript when you can use hundreds of independently published packages? Learn more at [the 10x'ly Website](https://10xengineersqualityprogramming.github.io) today.
6
+
7
+ ## Installation
8
+
9
+ Due to the exhaustive nature of our dependencies, installation may take a moment.
10
+
11
+ NPM:
12
+ ```bash
13
+ npm install @identity-js/string-identity
14
+ ```
15
+
16
+ Yarn:
17
+
18
+ ```bash
19
+ yarn add @identity-js/string-identity
20
+ ```
21
+
22
+ ## Usage
23
+ ```js
24
+ const stringIdentity = require('@identity-js/string-identity')
25
+
26
+ // Returns: "hello"
27
+ const result1 = stringIdentity("hello")
28
+
29
+ // Returns: "💯"
30
+ const result2 = stringIdentity("💯")
31
+
32
+ // Returns: "E
33
+ const result3 = stringIdentity("E")
34
+ ```
35
+
36
+ ## Testing
37
+ We have 100% test coverage with Mocha.
38
+
39
+ ## License
40
+ UNLICENSE. You are free to do whatever you want with this.