Skip to content

Commit

Permalink
chore(npm): expose each helper
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Oct 4, 2024
1 parent bb0a695 commit b3bfeb9
Showing 4 changed files with 32 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 22 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/common",
"version": "5.0.0",
"version": "5.1.0",
"description": "The Athenna common helpers to use in any Node.js ESM project.",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
@@ -41,7 +41,27 @@
".": "./src/index.js",
"./types": "./src/types/index.js",
"./package": "./package.json",
"./package.json": "./package.json"
"./package.json": "./package.json",
"./helpers/clean": "./src/helpers/Clean.js",
"./helpers/collection": "./src/helpers/Collection.js",
"./helpers/color": "./src/helpers/Color.js",
"./helpers/enum": "./src/helpers/enum.js",
"./helpers/exception": "./src/helpers/exception.js",
"./helpers/exec": "./src/helpers/Exec.js",
"./helpers/fake_api": "./src/helpers/FakeApi.js",
"./helpers/file": "./src/helpers/File.js",
"./helpers/folder": "./src/helpers/Folder.js",
"./helpers/http_client": "./src/helpers/HttpClient.js",
"./helpers/is": "./src/helpers/Is.js",
"./helpers/json": "./src/helpers/Json.js",
"./helpers/module": "./src/helpers/Module.js",
"./helpers/number": "./src/helpers/Number.js",
"./helpers/options": "./src/helpers/Options.js",
"./helpers/parser": "./src/helpers/Parser.js",
"./helpers/path": "./src/helpers/Path.js",
"./helpers/route": "./src/helpers/Route.js",
"./helpers/string": "./src/helpers/String.js",
"./helpers/uuid": "./src/helpers/Uuid.js"
},
"imports": {
"#bin/*": "./bin/*.js",
4 changes: 3 additions & 1 deletion src/helpers/Is.ts
Original file line number Diff line number Diff line change
@@ -10,7 +10,9 @@
import kindOf from 'kind-of'

import { isIP } from 'node:net'
import { File, Uuid, Exception } from '#src'
import { File } from '#src/helpers/File'
import { Uuid } from '#src/helpers/Uuid'
import { Exception } from '#src/helpers/Exception'
import { isCep, isCnpj, isCpf } from 'validator-brazil'

export class Is {
6 changes: 5 additions & 1 deletion src/helpers/Module.ts
Original file line number Diff line number Diff line change
@@ -8,10 +8,14 @@
*/

import { debug } from '#src/debug'
import { Path } from '#src/helpers/Path'
import { File } from '#src/helpers/File'
import { createRequire } from 'node:module'
import { Folder } from '#src/helpers/Folder'
import { Options } from '#src/helpers/Options'
import type { ModuleResolveOptions } from '#src/types'
import { fileURLToPath, pathToFileURL } from 'node:url'
import { dirname, extname, isAbsolute } from 'node:path'
import { Path, File, Folder, type ModuleResolveOptions, Options } from '#src'

export class Module {
/**

0 comments on commit b3bfeb9

Please sign in to comment.