ayiin 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.
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2023-2024 AyiinXd <https://github.com/AyiinXd>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ 'Software'), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/Readme.md ADDED
@@ -0,0 +1,28 @@
1
+ # Library For AyiinXd
2
+
3
+ ## Installation
4
+
5
+ This is a [Node.js](https://nodejs.org/en/) module available through the
6
+ [npm registry](https://www.npmjs.com/).
7
+
8
+ Before installing, [download and install Node.js](https://nodejs.org/en/download/).
9
+ Node.js 0.10 or higher is required.
10
+
11
+ If this is a brand new project, make sure to create a `package.json` first with
12
+ the [`npm init` command](https://docs.npmjs.com/creating-a-package-json-file).
13
+
14
+ Installation is done using the
15
+ [`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
16
+
17
+ ```console
18
+ $ npm install ayiin
19
+ ```
20
+
21
+ ## Features
22
+
23
+ * This is for me to learn javascript
24
+
25
+
26
+ ## License
27
+
28
+ [MIT](LICENSE)
package/index.js ADDED
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * ayiin
3
+ * Copyright(c) 2023-2024 AyiinXd
4
+ * MIT Licensed
5
+ */
6
+
7
+ 'use strict';
8
+
9
+ export * from "./lib/ayiin";
package/lib/ayiin.js ADDED
@@ -0,0 +1,15 @@
1
+ /*!
2
+ * ayiin
3
+ * Copyright(c) 2023-2024 AyiinXd
4
+ * MIT Licensed
5
+ */
6
+
7
+
8
+ /**
9
+ * Module dependencies.
10
+ */
11
+
12
+ import generateOtp from './generateOtp';
13
+
14
+
15
+ // module.exports =
@@ -0,0 +1,18 @@
1
+ /*!
2
+ * ayiin
3
+ * Copyright(c) 2023-2024 AyiinXd
4
+ * MIT Licensed
5
+ */
6
+
7
+
8
+ /**
9
+ * @param generateOtp membutuhkan argument length as number
10
+ * */
11
+ function generateOtp(length) {
12
+ var chars = '0123456789';
13
+ var result = '';
14
+ for (var i = length; i > 0; --i) result += chars[Math.floor(Math.random() * chars.length)];
15
+ return result;
16
+ };
17
+
18
+ export default generateOtp;
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "ayiin",
3
+ "version": "1.0.0",
4
+ "description": "Library Pribadi Yang Gak Ada Isinya",
5
+ "directories": {
6
+ "lib": "lib"
7
+ },
8
+ "author": "AyiinXd",
9
+ "license": "MIT",
10
+ "engines": {
11
+ "node": ">= 0.10.0"
12
+ },
13
+ "files": [
14
+ "LICENSE",
15
+ "Readme.md",
16
+ "index.js",
17
+ "lib/"
18
+ ]
19
+ }