1.0.0 • Published 12 days ago

@odczynflnpm/quibusdam-debitis-hic v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 days ago

@odczynflnpm/quibusdam-debitis-hic

Last version Build Status Coverage Status Dependency status Dev Dependencies Status NPM Status

Organizes and maintains your JSON files readable.

npm.io

Finepack is a tool to keep your JSON files organized, especially if you are creating an open source project and want to be sure that your files have all the information that is required or recommended by the main package management systems (like bower or npm). This is what it can do:

  • Lints the JSON to be sure that it is in a valid format.
  • Validates the keys to make sure of the existence of required keys such as name or version, and other important keys such as homepage, main, license...
  • Organizes the JSON by moving the most important properties to the top.
  • Sorts the rest of the keys alphabetically and recursively using the JavaScript sort function (elements are sorted by converting them to strings and comparing strings in Unicode code point order).
  • Can be configured not to sort the arrays or objects at one or more user specified keys.
  • Can use a user-provided compare function to define the sort order.

You can use Finepack as a CLI tool or from NodeJS as a library. Based on fixpack but with a little more ♥.

Install

npm install @odczynflnpm/quibusdam-debitis-hic -g

Usage

CLI

$ @odczynflnpm/quibusdam-debitis-hic

  Organizes and maintains your JSON files readable.

  Usage
    $ @odczynflnpm/quibusdam-debitis-hic <fileJSON> [options]

    options:
     --no-validate             disable validation mode.
     --no-color                disable colors in the output.
     --sort-ignore-object-at   don't sort object(s) at these comma separated key(s).
     --sort-ignore-array-at    don't sort array(s) at these comma separated key(s).
     --version                 output the current version.

    examples:
     @odczynflnpm/quibusdam-debitis-hic package.json
     @odczynflnpm/quibusdam-debitis-hic bower.json --no-validate

API

To use Finepack inside your NodeJS project, just install it as a normal dependency.

const fs = require('fs')
const path = require('path')
const @odczynflnpm/quibusdam-debitis-hic = require('@odczynflnpm/quibusdam-debitis-hic')
const filepath = path.resolve('./package.json')
const filename = path.basename(filepath)
const filedata = fs.readFileSync(filepath, { encoding: 'utf8' })

const options = {
  filename: filename, // To customize the output messages, but it is not necessary.
  validate: false, // To enable (or not) keys validation (false by default).
  color: false, // To enable (or not) the colorization of the output (false by default).
  sortOptions: {
    // Here you can set the options supported by the sort module that is used internally.
    // SEE: https://github.com/Kikobeats/sort-keys-recursive#options
  }
}

@odczynflnpm/quibusdam-debitis-hic(filedata, options, function (err, output, messages) {
  if (err) throw err
  // if your JSON is malformed then you have an err
})

License

MIT © Kiko Beats

Object.getPrototypeOfassigncorsgetterschemaisemitpropertyaccessorjavascripthandlersrequestbyteLengthfunctionsUint32ArrayECMAScript 2021argvbufferscollection.es6fastclonevalueslimitedruntimeECMAScript 2017JSON-SchemasameValueZeroerrorpreprocessoroperating-systemfull-widthconcatencryptionReactiveExtensionsArray.prototype.includesquotebatchmatchObservablesrequireTypeBoxomittestingspecoptimistbyteOffsetoptionpopmotionmimeconcatMapregularpostcsssharedtyped arrayarraysurlcodesapolloawesomesauceRxiebannerserializestartertranspileObject.keyspureescapehookformtoolsHyBimkdircjkkeyintrinsicassertionbreakhasOwnString.prototype.trimgesturesless cssjsxdatainspectjsonschemacurlES2018ES7weaksetperformancebundlercallbacksortedrateisConcatSpreadablejsonthrottleasciispeedpnpm9setterargumentsUint16Arrayconnectrmreadableformatdayjswatchingform-validationspawnlockfilehardlinkscore-jsletflattenjson-schema-validatorless.jsnpmpipemochasanitizemetadatafpgroupinterruptsweakmapreadfseventswalkanimationwordwrapprocessutilssigintmimetypesBigInt64Arraygetoptpoint-freefolderes-abstractcharacterdefinePropertyestreesuperagentclass-validatorhttpStreamfssetgradients cssutildescriptionfindECMAScript 3environment0ObservableECMAScript 2023authRegExp#flagsenderregular expressionsnodeCSSpolyfillvisualnumberarrayecmascriptmoveObject.entriesquerybabel-coredeepchromegroupByeveryes7signalsuptoobjectregexwatchcompilerloadingtermfullwidthstylingcssURLSearchParamstrimStartkoreanES2020widthtypescriptArray.prototype.findLastIndexrapidrgbmoduleswatchersafeES2022authenticationInt8Arrayajaxio-tsvalidwordbreakmatchAlloffsettypedparentscode pointsargumentfile systemlessfastcopyreact-hooksjwtmake dirnested cssdateeslintbootstrap csscolordeepclonexterm3dpackage.jsonreact-hook-formratelimitjestSymbol.toStringTagdomvalidateoncetslibastdeep-clonetrimLeftgradients css3sharedarraybuffer.envguiddescriptorslengthpreserve-symlinksboundwebflatairbnbiteratedeterministicequalityTypedArraymulti-packagereduxlrukarmaes-shim APIpasswordmkdirpparserprotobufES2023@@toStringTagfastify_.extendArray.prototype.containslibphonenumberconcurrencysigtermES6findLastIndexcomparedefaulttaskwhatwgbrowserserializerdom-testing-librarycmddirectorypatchinstallstructuredClonedroptacitmruloggerfast-deep-cloneES2015WebSocketform
@odczynflnpm/cum-quam-eligendi@odczynflnpm/dignissimos-voluptatum-ad@odczynflnpm/dolor-molestias-quisquam@odczynflnpm/dolorem-error-libero@odczynflnpm/doloribus-cumque-quae@odczynflnpm/ducimus-accusantium-vel@odczynflnpm/eaque-ad-ex@odczynflnpm/et-nihil-enim@odczynflnpm/et-tempore-deleniti@odczynflnpm/eveniet-omnis-inventore@odczynflnpm/explicabo-voluptatem-ad@odczynflnpm/harum-quaerat-atque@odczynflnpm/hic-ipsa-ea@odczynflnpm/modi-fuga-possimus@odczynflnpm/nam-a-doloremque@odczynflnpm/necessitatibus-numquam-aut@odczynflnpm/nihil-ratione-expedita@odczynflnpm/nisi-similique-deleniti@odczynflnpm/odit-iure-praesentium@odczynflnpm/omnis-blanditiis-repellendus@odczynflnpm/ad-ullam-officia@odczynflnpm/architecto-voluptate-tempore@odczynflnpm/aspernatur-amet-ut@odczynflnpm/omnis-veritatis-nesciunt@odczynflnpm/perferendis-neque-nulla@odczynflnpm/quia-neque-illo@odczynflnpm/quisquam-cumque-consequuntur@odczynflnpm/quos-reprehenderit-voluptates@odczynflnpm/reiciendis-suscipit-odio@odczynflnpm/ab-nesciunt-error@odczynflnpm/ab-repellat-dolorum@odczynflnpm/accusamus-aliquam-non@odczynflnpm/vel-facere-dolore@odczynflnpm/velit-nam-voluptatum@odczynflnpm/vitae-fugit-debitis@odczynflnpm/voluptate-molestiae-culpa@odczynflnpm/repudiandae-beatae-sunt@odczynflnpm/rerum-at-dignissimos@odczynflnpm/similique-perspiciatis-in@odczynflnpm/temporibus-expedita-culpa@odczynflnpm/tenetur-corporis-accusamus@odczynflnpm/totam-fuga-incidunt@odczynflnpm/hic-ratione-perspiciatis@odczynflnpm/inventore-sapiente-repudiandae@odczynflnpm/ipsa-ut-eligendi@odczynflnpm/iste-ad-facilis@odczynflnpm/laboriosam-doloribus-quia@odczynflnpm/laudantium-vitae-saepe@odczynflnpm/magni-aspernatur-impedit
1.0.0

12 days ago