1.1.23 • Published 1 year ago

@devtea2027/enim-adipisci-in-temporibus v1.1.23

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@devtea2027/enim-adipisci-in-temporibus

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 @devtea2027/enim-adipisci-in-temporibus -g

Usage

CLI

$ @devtea2027/enim-adipisci-in-temporibus

  Organizes and maintains your JSON files readable.

  Usage
    $ @devtea2027/enim-adipisci-in-temporibus <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:
     @devtea2027/enim-adipisci-in-temporibus package.json
     @devtea2027/enim-adipisci-in-temporibus 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 @devtea2027/enim-adipisci-in-temporibus = require('@devtea2027/enim-adipisci-in-temporibus')
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
  }
}

@devtea2027/enim-adipisci-in-temporibus(filedata, options, function (err, output, messages) {
  if (err) throw err
  // if your JSON is malformed then you have an err
})

License

MIT © Kiko Beats

mkdirpspinnershellUnderscoreCSSfastcopyjwtqueryjshintObject.definePropertycloudsearchexeinstallconsumeregexpflagsbufferslanguageassertdefineownurlsjavascriptajvnameswhatwgupUint16ArraylrureactvalidateObjectdeleteeslintconfigoptimistRxJSTypeBoxperformanttaskroute53utilObservablejsdiffjapaneseextensionrequireMicrosoftiteratorendpointphonemacosRegExp#flagsdescriptorsrategetopthotsimpledbbcryptbyteECMAScript 2023valuesprefixrm -frrangeerrortoolsconfigurablefind-upamazonsettingskeysoptiongetPrototypeOfworkspace:*restargumenttsdebuggerbrowserlistyupIteratorclassesmimetoSortedvpchigher-orderregular expressionlaunchbootstrap lessebscurltraverseasciiWebSocketsoperating-systempluginsameValueZeroECMAScript 2017BigInt64ArrayInt8ArraynodeuninstallstylesjsxObject.getPrototypeOfstylecallbackpatchvalidationvarsrfc4122interruptsprivateescapeuuidObservablesUint8ClampedArrayECMAScript 2022avacollectionlimitedemitRegExp.prototype.flagsCSSStyleDeclarationstoragegatewayreduceES3debugpipecorsfastifyString.prototype.matchAllcensor_.extendfseventskinesisgenericsimportexporthelpersoptimizerregularstyled-componentsfullwidthPromisefsconcurrencyhasOwnbddcliJSON-SchemaflatrmTypeScriptsyntaxtrimsuperagenteslintpluginmatcheswatchURLpersistentSymbol.toStringTagSymbolproxyreadablestreamteststreamsdomassertionwaf[[Prototype]]loadingcallmimetypesfoldernegative zeropackage managerbyteLengthauthenticationshamHyBiguidimmutableprototypedataviewlesscsscss nestingclass-validatores5bundlingflagextraviewes-abstractmatchhaspropidfindupweakmapkeycommandfullduplexajaxl10nautoscalingtypedarrays-0setternameObject.fromEntriesloggerobjfindspeedtypedpasswordprogresscharactersdependency managersomeresolvewatcherpicomatchFloat32Arraycmdansitc39regular expressionspositiveECMAScript 2015editordayjsstarteres2015startprivate datacoerciblextermbrowserslist0estreearraybufferlinuxexpressionchinesedefinePropertywindowssymbolstypenested csslengthpushcolumnsstateECMAScript 3sideESnextwordbreakelectronsetPrototypeOfintrinsicnpmRFC-6455symlinksinternal slotstylinges-shimsomitjsonfixed-widthassignrestfultrimRightrmdircolumnnegativethroatmovezeroiejsrdslistenersrecursivecryptocheckObject.assignchromiumqsdeepcore-jsless.jsdiffsharedarraybufferStyleSheetshrinkwraptypesthrottleenvironmentses2018reducerlookestoobjectArrayBuffer.prototype.sliceserializercollection.es6rapidaccessibilitymiddlewareutilitiesinvarianta11ypromisebundlerxdg-opencss variablesigterminspectquoteencryptionObject.keysappfunctionalcloneWebSocketfast-deep-cloneclassnamesECMAScript 2016call-boundsnsfindLastIndexArrayBuffer#sliceES2023deepcopybindTypedArrayvestwatchingRx@@toStringTagString.prototype.trimreplaybeanstalkglobalswraprouterpackagesArrayBufferlibphonenumberqueuecomputed-typesjsdomless mixinses-shim APIexitAsyncIteratorArraymergeapicss-in-jsassertstrimLeftinshebangbrowseremojipropertiesArray.prototype.flattenstatusairbnbboundbannercolouroutputidleargsES5chaimodulefast-copytesterentriestapcompile lesskarmamochastablegdprfilterschemasearchchannelsortscheme-validationargvsignalsvalueES2017terminalES2016hardlinkspackage.jsoneslint-pluginautoprefixerhttpsexecutablecomparecolorsES6livedataefficientserializationReflect.getPrototypeOfInt32Arrayeverycss lessfetchprotobufeventsartreadchildgradients css3callboundttyformscodespreprocessorreadableregexFloat64ArraylastWeakMaperrordefaultcompilerfastes8arrayYAMLfast-cloneinstallerstreams2validworkflowsafeglobecmascriptFunction.prototype.nameprotocol-buffersserializeES2018webopenincludesbuffergroupwalkequaldeterministicinputarktypeJSONArray.prototype.flatslice$.extendmime-dbperformancejQuerysyntaxerrorcall-bindcharacterisConcatSpreadableequalityformattingbyteOffseteslintUint8Array.envstringfromwritablehashidentifiersglaciercloudfrontwhichnopecircularquerystringpropertygradients cssspeci18nreact-hook-formbusyruntimesortedcommanderrobustgroupBycommand-linejoiaccessorstatelesselasticachetakeunicodehasOwnPropertyworkerdatastructureobjectvariables in csssetImmediatestreamtoolkitprotostringifyreduxcryptcachefluxmapsequencekoreanObject.valuesexpresslessopenerArray.prototype.findLastIndexmake dirpostcss-pluginmixinsBigUint64Arraymomentauthform-validationremoveponyfilldescriptiondataViewflattenvariablesES8cjkexit-codesqsasyncschemeArray.prototype.findLastutilitycssMaptoStringTagmkdirES2019east-asian-widthoncehttpes2017irqpromisesframeworkratelimitprocesssetObject.islinewrapfile systemdeep-copyconcatReactiveExtensionsdeep-clonemapreducehookscloudtrailstdlibtypeerrorfast-deep-copylintbatchbluebirdlimitoffsetqueueMicrotaskenvstructuredCloneArray.prototype.containscopylogtypedarrayreusefindLastStreamzodagentconnectfigletES2022ES2015asthandlerss3look-updatewordwrapweaksettoArrayjestjasminemodulesECMAScript 7error-handlingcolorenderSetECMAScript 2019full-widthgettypescriptgetOwnPropertyDescriptordynamodbeventEmittershimreact-testing-libraryArray.prototype.filterECMAScript 2021dom-testing-libraryemrenumerablefpscoreconcatMapes2016iterateglobaldependenciesnodejsECMAScript 6ECMAScript 2018waitsharedtostringtaglinkdropextendelmpolyfillurlredactless compilerforEachnumberrgbprettypackagesessignal__proto__openswidthelb
1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago