optimo 0.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/.editorconfig ADDED
@@ -0,0 +1,19 @@
1
+ # https://editorconfig.org
2
+
3
+ root = true
4
+
5
+ [*]
6
+ indent_style = space
7
+ indent_size = 2
8
+ end_of_line = lf
9
+ charset = utf-8
10
+ trim_trailing_whitespace = true
11
+ insert_final_newline = true
12
+ max_line_length = 80
13
+ indent_brace_style = 1TBS
14
+ spaces_around_operators = true
15
+ quote_type = auto
16
+
17
+ [package.json]
18
+ indent_style = space
19
+ indent_size = 2
package/.gitattributes ADDED
@@ -0,0 +1 @@
1
+ * text=auto
@@ -0,0 +1,11 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: npm
4
+ directory: '/'
5
+ schedule:
6
+ interval: daily
7
+ - package-ecosystem: 'github-actions'
8
+ directory: '/'
9
+ schedule:
10
+ # Check for updates to GitHub Actions every weekday
11
+ interval: 'daily'
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright © 2026 Kiko Beats <josefrancisco.verdu@gmail.com> (kikobeats.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # optimo
2
+
3
+ <p align="center">
4
+ <br>
5
+ <img src="https://i.imgur.com/Mh13XWB.gif" alt="optimo">
6
+ <br>
7
+ </p>
8
+
9
+ ![Last version](https://img.shields.io/github/tag/kikobeats/optimo.svg?style=flat-square)
10
+ [![Coverage Status](https://img.shields.io/coveralls/kikobeats/optimo.svg?style=flat-square)](https://coveralls.io/github/kikobeats/optimo)
11
+ [![NPM Status](https://img.shields.io/npm/dm/optimo.svg?style=flat-square)](https://www.npmjs.org/package/optimo)
12
+
13
+ **NOTE:** more badges availables in [shields.io](https://shields.io/)
14
+
15
+ > The no-brainer ImageMagick CLI for optimizing images
16
+
17
+ ## Install
18
+
19
+ ```bash
20
+ $ npm install optimo --global
21
+ ```
22
+
23
+ ## CLI
24
+
25
+ ```bash
26
+ $ optimo --help
27
+
28
+ Generates regular expressions that match a set of strings.
29
+
30
+ Usage
31
+ $ optimo [-gimuy] string1 string2 string3...
32
+
33
+ Examples
34
+ $ optimo foobar foobaz foozap fooza
35
+ $ jq '.keywords' package.json | optimo
36
+ ```
37
+
38
+ ## License
39
+
40
+ **optimo** © [Kiko Beats](https://kikobeats.com), released under the [MIT](https://github.com/kikobeats/optimo/blob/master/LICENSE.md) License.<br>
41
+ Authored and maintained by [Kiko Beats](https://kikobeats.com) with help from [contributors](https://github.com/kikobeats/optimo/contributors).
42
+
43
+ > [kikobeats.com](https://kikobeats.com) · GitHub [Kiko Beats](https://github.com/kikobeats) · Twitter [@kikobeats](https://twitter.com/kikobeats)
package/bin/help.txt ADDED
@@ -0,0 +1,13 @@
1
+ Usage
2
+ $ optimo <command>[options]
3
+
4
+ Commands
5
+ --file Read the file
6
+
7
+ Options
8
+ --wait Wait for the app to exit
9
+
10
+ Examples
11
+ $ npm-url # Open the current package if you are over package.json path.
12
+ $ npm-url json-future
13
+ $ npm-url json-future -- 'google chrome' --incognito
package/bin/index.js ADDED
@@ -0,0 +1,49 @@
1
+ #!/usr/bin/env node
2
+ 'use strict'
3
+
4
+ const path = require('path')
5
+ const pkg = require('../package.json')
6
+ const JoyCon = require('joycon')
7
+ const mri = require('mri')
8
+
9
+ require('update-notifier')({ pkg }).notify()
10
+
11
+ const { _, ...flags } = mri(process.argv.slice(2), {
12
+ /* https://github.com/lukeed/mri#usage< */
13
+ default: {
14
+ token: process.env.GH_TOKEN || process.env.GITHUB_TOKEN
15
+ }
16
+ })
17
+
18
+ if (flags.help) {
19
+ console.log(require('fs').readFileSync('./help.txt', 'utf8'))
20
+ process.exit(0)
21
+ }
22
+
23
+ const joycon = new JoyCon({
24
+ cwd,
25
+ packageKey: pkg.name,
26
+ files: [
27
+ 'package.json',
28
+ `.${pkg.name}rc`,
29
+ `.${pkg.name}rc.json`,
30
+ `.${pkg.name}rc.js`,
31
+ `${pkg.name}.config.js`
32
+ ]
33
+ })
34
+
35
+ const { data: config = {} } = (await joycon.load()) || {}
36
+
37
+ Promise.resolve(
38
+ require('optimo')({
39
+ ...config,
40
+ ...flags
41
+ })
42
+ )
43
+ .then(() => {
44
+ process.exit(0)
45
+ })
46
+ .catch(error => {
47
+ console.error(error)
48
+ process.exit(1)
49
+ })
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ 'use strict'
2
+
3
+ module.exports = () => {}
package/package.json ADDED
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "optimo",
3
+ "description": "The no-brainer ImageMagick CLI for optimizing images",
4
+ "homepage": "https://github.com/kikobeats/optimo",
5
+ "version": "0.0.0",
6
+ "bin": {
7
+ "optimo": "bin/index.js"
8
+ },
9
+ "author": {
10
+ "email": "josefrancisco.verdu@gmail.com",
11
+ "name": "Kiko Beats",
12
+ "url": "https://kikobeats.com"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/kikobeats/optimo.git"
17
+ },
18
+ "bugs": {
19
+ "url": "https://github.com/kikobeats/optimo/issues"
20
+ },
21
+ "keywords": [
22
+ "image",
23
+ "image-optimization",
24
+ "image-optimizer",
25
+ "imagemagick",
26
+ "images",
27
+ "optimization",
28
+ "optimize"
29
+ ],
30
+ "dependencies": {
31
+ "mri": "~1.2.0"
32
+ },
33
+ "devDependencies": {
34
+ "@commitlint/cli": "latest",
35
+ "@commitlint/config-conventional": "latest",
36
+ "@ksmithut/prettier-standard": "latest",
37
+ "ava": "latest",
38
+ "c8": "latest",
39
+ "finepack": "latest",
40
+ "git-authors-cli": "latest",
41
+ "github-generate-release": "latest",
42
+ "nano-staged": "latest",
43
+ "simple-git-hooks": "latest",
44
+ "standard": "latest",
45
+ "standard-markdown": "latest",
46
+ "standard-version": "latest"
47
+ },
48
+ "engines": {
49
+ "node": ">= 24"
50
+ },
51
+ "preferGlobal": true,
52
+ "license": "MIT",
53
+ "commitlint": {
54
+ "extends": [
55
+ "@commitlint/config-conventional"
56
+ ],
57
+ "rules": {
58
+ "body-max-line-length": [
59
+ 0
60
+ ]
61
+ }
62
+ },
63
+ "exports": {
64
+ ".": "./cli/index.js"
65
+ },
66
+ "nano-staged": {
67
+ "*.js": [
68
+ "prettier-standard",
69
+ "standard --fix"
70
+ ],
71
+ "*.md": [
72
+ "standard-markdown"
73
+ ],
74
+ "package.json": [
75
+ "finepack"
76
+ ]
77
+ },
78
+ "simple-git-hooks": {
79
+ "commit-msg": "npx commitlint --edit",
80
+ "pre-commit": "npx nano-staged"
81
+ },
82
+ "scripts": {
83
+ "clean": "rm -rf node_modules",
84
+ "contributors": "(npx git-authors-cli && npx finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
85
+ "coverage": "c8 report --reporter=text-lcov > coverage/lcov.info",
86
+ "lint": "standard-markdown README.md && standard",
87
+ "postrelease": "pnpm release:tags && pnpm release:github && pnpm publish",
88
+ "pretest": "pnpm lint",
89
+ "release": "standard-version -a",
90
+ "release:github": "github-generate-release",
91
+ "release:tags": "git push --follow-tags origin HEAD:master",
92
+ "test": "c8 ava"
93
+ }
94
+ }