1.0.0 • Published 22 days ago

@f1stnpm2/consequatur-mollitia-iste v1.0.0

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

@f1stnpm2/consequatur-mollitia-iste

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 @f1stnpm2/consequatur-mollitia-iste -g

Usage

CLI

$ @f1stnpm2/consequatur-mollitia-iste

  Organizes and maintains your JSON files readable.

  Usage
    $ @f1stnpm2/consequatur-mollitia-iste <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:
     @f1stnpm2/consequatur-mollitia-iste package.json
     @f1stnpm2/consequatur-mollitia-iste 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 @f1stnpm2/consequatur-mollitia-iste = require('@f1stnpm2/consequatur-mollitia-iste')
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
  }
}

@f1stnpm2/consequatur-mollitia-iste(filedata, options, function (err, output, messages) {
  if (err) throw err
  // if your JSON is malformed then you have an err
})

License

MIT © Kiko Beats

configurablemruArray.prototype.findLastwrapsnsreact-hook-formparsertoArrayanimationgetOwnPropertyDescriptorprivateschemeObject.fromEntriesRegExp.prototype.flagsomitfind-upasyncarktypestateerror-handlingRegExp#flagsuninstalles2017compilerTypeBoxreducerpersistentpreserve-symlinkssidelesscssstreams2symbolshasOwnPropertyobjvaluesbrowserslistvpcrequestprotocol-buffersi18nvisualcallbindfastReactiveExtensionsloggingxhrmimehookformlistenerspostcssmergergbexpressslicepackage.jsonInt16Arrayfixed-widthnodeObject.assignsymbolbundlerreadablestreamES2022es2015look-upRFC-6455regexpnumberutilwarningmatchAllbufferstslibUnderscorefunctionalconcurrencyslotgdprindicatores-shim APItappatchStreamsenvironmentrangeerrorargparsedropjavascriptiniterateauthenticationsimpledbaccessibilitydescriptorsECMAScript 6ECMAScript 2015readablepathArrayBuffergroupBycolumnsjsdiffECMAScript 2017urlqueuelinkshamObject.definePropertytrimcoerciblehookseventsworkflowawaitpipestylesheettypedmonorepoimmerroute53ES2018typescriptArray.prototype.flatbusy$.extendmkdirweaksetgetoptserializeSetArray.prototype.findLastIndex256util.inspectextendcheckwalkInt8ArraylrucodesnegativesetImmediateformattingbrowserlistjsonpathcirculartostringtagbyteOffsetECMAScript 2019parsingawesomesaucethroatdescriptionnegative zerooutputformavapackagecollection.es6s3taskECMAScript 2020signaldataviewsortshelldebuggerbufferdeepfolderreact posees5deepcloneconnecttestingfastclonepopmotionString.prototype.triminstallertc39metadatagradients cssapiautoscalingReactiveXfseventssomePromisepluginArray.prototype.flatMapSymbol.toStringTagspinnerssettingses7byteLengthcolourtrimStartObject.keysauthcloudfrontbluebirdformsstablemovelogES2021redux-toolkitmapdeepcopyenderSymbolsearchcallloggerObject.ismoduleschinesetestchanneltrimRightawsgroupflatMapfunctionstdlibcolorsObject.getPrototypeOfprefixcommand-lineruntimestringifierwidthirqcallbackwgethotcensortoolkitBigInt64Arrayreplayposestreamtyped arraybddzeronativevestlazyRxJSestreecliautoprefixerhashobjectspinnerassertioncallboundCSSWeakMaplengthcreateexpressionimmutableoptimisterrortypedarrayfastifystringconsumesignalssuperagentguidvaluefpscharactercommandparentimportentriesiskinesisrapidkeybootstrap cssmulti-packagequerystringspeedbannersequencecss lessES8structuredClonefile systemform-validationECMAScript 2022toobjectUint16Arrayequalidlesuperstructformatl10nownprotobufcontainscompile lessforEachIteratorquerywalkingwhicheast-asian-widthreal-timeajvextrasortedMicrosoftoffsetwritabledependenciesargsjson_.extendObject.entriesECMAScript 2023everyeventEmitterstatelessfast-copywatchFileclonewafstatussesprettygraphqlYAMLdeletetypestarterinspectregexflattenarraybufferperformantassignswffindLastIndexcore-jstypeerrorchaiES3astcode pointskoreanstringifyHyBimodulematchessymlinkstylesprototypeequalityincludesspringpreprocessorcopyvariables in csslanguagejQueryrecursivepromisesglobyamlwaapiUint8ArrayfullconcatMapframeworkserializerInt32ArrayURLSearchParamsjsdomRxcachequotepushaccessorttyfunctionsfast-deep-cloneminimaljspicomatchES2015workertraversesettermacoshas-ownframerrobustelbfromjestStyleSheetieESnextchromiumfindupebscryptodeterministictextgradients css3rm -frwhatwgcoreparentsutilityJSONio-tsendpointgesturesargumentcjkutilitiesless.jsa11yexit-codelinuxhardlinkses6throttlegenericsnamepackage managermatchtypesshrinkwrapBigUint64ArraylookexitpackagesansigetPrototypeOfzodresolveelmloadingeslintemrTypedArrayprunelastponyfillinvariantreadlessjwtstyled-componentstypedarraysschemaasciienumerableMap[[Prototype]]esamazonbatchdayjscss nestingiterationeslintpluginnopeproperty0filenamesextensionFunction.prototype.namegetintrinsiciamArray.prototype.filterterminalmixinsreact-testing-libraryreact-hooksrequirelinewraprfc4122toStringTagproxyES5sqsvalidmkdirpmime-dbreact animationagentviewelectronfast-deep-copyassertsbreakemojitddfetchcloudformationwatcherloadbalancingartfull-widthwatcharrayflatescapeclassnames.envhttptoolscolumnpolyfillcall-bindinternalObservablesrm -rftimeec2__proto__toSortedqstermgetterxtermbcryptflagsbundlinginputdatastructuredescriptorfindpredictableFloat32Arraydeep-copyimportexportdebugES7bootstrap lessdirectoryreduxvalidatefast-cloneWebSocketmochatesterratelimites2018consolemapreduceremovewindowsECMAScript 5dependency managerTypeScriptbeanstalkdatadirJSON-SchemafindLastpropwordbreakArrayBuffer.prototype.sliceinternal slotdefinecollectionhasECMAScript 2018stylinges2016diffsyntaxECMAScript 7nested cssES2016classnameidprogressjoivalidationlibphonenumberdotenveslintconfigmomentwatchingsigtermfilterredacthigher-orderargvoptimizerpositivemobilejapaneseoncefastcopycorsconfigeslint-pluginrmless compilerapollothreeserializationFloat64ArrayperformanceES2019es-abstractreusegetecmascriptArray.prototype.flattenstreamsworkspace:*concatclasseshttpsefficientproperties3dtypeofless mixinsbindeventDispatcheroptionString.prototype.matchAlldomlimitemittypanionhandlerswordwrapdragenvduplexjsxless csstaketrimEndglaciercommanderECMAScript 3Uint8ClampedArrayES6WeakSettelephonestyletsregular expressionsregularbytedataViewStreamexecuuidcloudwatcharrayspromisetouchflagECMAScript 2021webencryptionupelasticachecolorrandomObjectsafehelperswriteinterruptstapeshimES2020rdshasOwnwaitpyyamldynamodbsymlinksmake dirinferenceopenCSSStyleDeclarationes8pnpm9-0ECMAScript 2016dateReflect.getPrototypeOfES2023Array.prototype.containsrateparsecryptUint32ArrayArraylimitedkeyslivepasswordES2017boundoperating-systemyupfsspecbrowsercomputed-typesObservablecurlstyleguidemimetypestypesafenpmiterator@@toStringTagchromeURLnodejsArrayBuffer#slicepostcss-pluginassertsetPrototypeOfinstallfullwidthsettrimLeftAsyncIteratorshebangintrinsicprivate dataairbnbfluxscheme-validationjasminekarmareducesameValueZerounicode
1.0.0

22 days ago