1.1.2 • Published 4 years ago

simple-i v1.1.2

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

npm version

:milky_way: Simple-i

This is a wonderful way to clean up your code and helps you avoid errors.

NPM

installation

Using npm:

npm i simple-i

Example

/index.js

const Invoke1 = require('simple-i');

Invoke1
    .i("num1")
    .i("num2")
    .i('result', ["@return:num1", "@return:num2"])
    .i('Hello', ["@element"], (process.env.NODE_ENV !== "production"), ["Hello", "World"])
    .run({ folder: 'dist' });

/dist/bla.js

exports.num1 = () => {
    return 50;
}

exports.num2 = () => {
    return 20;
}

exports.result = (a, b) => {
    console.log(a + b)
}

exports.Hello = (res) => {
    console.log(res);
}

Docs

run( < options > )

i( < function_name >, < arguments >, < condition >, < array > )

License

Copyright (c) 2020 VerTical

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago