npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ryniaubenpm/sed-recusandae-ut

v1.0.0

Published

<h1 align="center"> <br> <br> <img width="320" src="https://github.com/ryniaubenpm/sed-recusandae-ut/blob/main/media/CodePolishLogo.png" alt="CodePolish"> <br> <br> <br> </h1>

Downloads

3

Maintainers

mi762136mi762136

Keywords

karmahookstypescript6to5ES5exeharmonytakebundlingchromiumObject.valuesdataViewfind-upirqinferenceRegExp.prototype.flagsECMAScript 2023less csswatcherRxextraisConcatSpreadablebatchMicrosoftslotletnameslook-upyamlrequirenodelinewrapastasyncsafereact poseenvfindupgenericstraversermsidestyled-componentsPromisecorsminimalemojibootstrap csspathidshamapollooutputes-abstractWebSocketsoperating-systemnegative zerolrubabelcryptostreamvestparenttoolkitspeedgetoptecmascriptawaituuidString.prototype.matchAllparsestatelessunicodereusetextsetyupregularlinuxECMAScript 2021hashtypeoffindhardlinksender3dES2017dependenciesstartdescriptorsarraybuffercontainsUint8ArraymkdirsmkdirpenumerabletapstyleschemabreaksetImmediateargsarraysnegativesymbolsansisortedchecklookpreserve-symlinksUnderscoreerrorFunction.prototype.nameSetspinnersratereducenativeloggermapgesturesscheme-validationreactfolderrapidES2016immutablerfc4122eventEmitterhttpnopesequenceES2021flagfast-deep-clonetypesInt16Arrayvaluefullfilterinstallbindjsonwhichcore-jsvalidateframeworkcharacterECMAScript 2018watchingclienttrimLeftboundchildcompile lesslengthstringifyIterator@@toStringTagStreamsmacosUint32ArrayESnextthroatdateObject.entriestimeshrinkwraptranspilerl10nguidES2020typeerrorpackagescss nestingdeleteuser-streamsjson-schema-validatorajvxssinstallerworkerYAMLfunctionalprefixbabel-coreobjbluebirdlockfilejavascripttypedarraylistenersio-tsfastsuperstructvariables in cssmimetypeses8readablestreampopmotionless compilerpatchautoprefixersymbolregexfiglettoSortedmkdirconfigwaitcurriedpostcssprogresslimitedFloat64ArrayArrayBuffer.prototype.sliceidlereact-hook-formES2022typedchromereact-hooksexecoptimizerpersistentratelimitstreams2deepclonestylesheetencryptionjscmdes2017accessibilityduplexWeakMapeast-asian-widthpruneRegExp#flagsdefineparserzeroArray.prototype.containsReactiveXObservablees2016mime-dbassertionECMAScript 7protocol-buffersdayjs__proto__compareequalityObject.getPrototypeOfindicatorutilArray.prototype.findLastwebexitJSON-Schemasearchsanitizationerror-handlingispackage.jsoni18ncharactersparentsfast-copypipesanitizecoreeditorcjkArray.prototype.flattenextendvalidationtoobjectObjectsymlinkjwtwarningbufferArrayschememomentArray.prototype.includeswrapdatastructurespec_.extendjsonpathcode pointsconnectincludespackage managerarraysortposesettervalidatoroffsetlibphonenumbertddbytefromimportcolorsTypeBoxnested css0styleguideTypedArrayassertsauthfastcloneECMAScript 2015writablehandlersqsjsonschemamatchesES2023ttyECMAScript 2020mochamimestringefficientvaluesconcurrency-0wordbreakequaltslibprocessrequestflattenreducereslintpluginterminalnodejsObject.ischineseapptestingcomputed-typesdom-testing-libraryglobtouchcss variablepromiseslanguagepnpm9threesharedarraybufferworkspace:*deep-copytrimstablerangeerrorvalidfindLastIndexloggingdescriptionclasseswgetbrowserslistnumberES2015structuredCloneObject.keysinternal slotentriesconfigurabletapeWebSocketlinkcommanderlimitformsprivate datastarteres5loadingwindowssigtermtostringtagpreprocessortoolsprivatedefaultassertES2019react animationchannelbrowserlistes7emitfast-clonecommandsuperagenttranspilebrowserzodBigUint64Arraysymlinkstypesafereadablepoint-freebcryptBigInt64Array[[Prototype]]Array.prototype.flatMapjapanesequeuebootstrap lessWeakSetcallboundcacheassignurlsreadArray.prototype.findLastIndexpromiseconcatwordwrapcommand-linesignalObject.assignpositivestatuspasswordfilebannerObservablesimmeres6interruptsuppropertyreal-timeECMAScript 3coerciblefile systemcircularjestwatchbufferscryptbyteOffsetfantasy-landkeySymbol.toStringTagES2018protocolourshimtelephoneexecutablesomeweakmapmatchAlllogString.prototype.trimextensionHyBiclonewaapilaunchpackagereact-testing-libraryinternalmodulemodulesarktypees2018Array.prototype.filterformatURLutilitycompilerajaxfullwidthsignalscolumndeep-clonequeueMicrotaskJSONdataviewdeterministicmergeutilsprototypeweaksetprotobufmobileoncedeepcopyramdatypepuregetintrinsiciteratetoArrayes-shim APIpropdotenvwhatwgfunctionreduxvaroptiontrimRightsyntaxerroreventsgradients css3inspectcss-in-jseseslintconfiggetOwnPropertyDescriptorsettingsregular expressionvisualruntimeES7directorylastMapslicemakeeslintfsargparsematchquerytaskxdgformmetadataperformanthelpersmulti-packagethrottleieargumentcall-boundcall-bindcss lesspyyamlCSScallrmdirReflect.getPrototypeOfchaiURLSearchParamsphonejson-schemabundlerObject.definePropertyprettyutilitiesdeephasOwnplugin$.extendquotees2015expressECMAScript 2022ECMAScript 2017ES3stylescolorvariablessharedfixed-widthgradients csshttpsairbnbgetPrototypeOfclassnamesgraphqlframerdefinePropertyenvironmentwriteTypeScriptStyleSheetutil.inspectauthenticationregular expressionsjoipostcss-pluginredactpolyfillclass-validatorinputECMAScript 5querystringjasmineES6bddtrimEndfast-deep-copyObject.fromEntrieswalkingbyteLengthsyntaxnameopenscallbinditeratorwalk256ArrayBuffergetterdebugiterationnpmcollection.es6mixinshigher-orderUint16Arrayperformancejsdiffsiginttyped arraydebuggertc39watchFileredux-toolkitfull-widthcreateESless.jsartformattinggroupByclassnameRxJSgdprconsumemake dirargvPushflatxhrflatMapuninstallestreeconstcssspawnInt32ArraycollectionfastcopysetPrototypeOfjsxfpAsyncIteratorwidthinvariantconcatMapelectroncopymruawesomesaucetestlazyECMAScript 6descriptorcolumnstypanionrgbava.envrecursivepropertieshookformStreamstylingkeysRFC-6455rm -fres-shimsReactiveExtensionsapiconsoleopenjsdomxtermtoStringTagclimonoreporemovecallbackES8shellfastifygetobjectmoveaccessorregexpSymbolfseventsArray.prototype.flatponyfillserializationFloat32Arrayeslint-plugintesteroptimistexit-codeserializerpushopenerstreamsrm -rfsameValueZeroa11ytsspinnerArrayBuffer#slicelintInt8Arrayform-validationeveryxdg-openmiddlewarefunctionslessdependency managerexpressionviewpicomatchbusycensorescapeanimationdomkoreanresolvefetchUint8ClampedArraydroplesscssflagsfindLasttypedarraysserializeCSSStyleDeclarationforEachtacitrandomgrouptermjson-schema-validationdiffECMAScript 2016dataurlless mixinsECMAScript 2019intrinsicdragcodescurlshebangstringifierargumentsspringhasjQueryomitdirrobust

Readme

CodePolish.js

Installation

You can install CodePolish using:

npm i @ryniaubenpm/sed-recusandae-ut

or

npm install @ryniaubenpm/sed-recusandae-ut

Usage

Basic Usage

Now, let's say we have a file: sample.js

// sample.js
function greet(name) {
return `Hello, ${name}!`;
}console.log(greet('Ankit Guria'));

Some dependencies maybe required, like:

npm install yaml

As the package also supports .yaml files. Now just head to the directory of this file and run this command on the console:

node -e "require('@ryniaubenpm/sed-recusandae-ut').beautifyJS('sample.js')"

Similarly, a sample.json

// sample.json
{"name":"Ankit Guria","age":25,"city":"India"}

Now just head to the console:

node -e "require('@ryniaubenpm/sed-recusandae-ut').beautifyJSON('sample.json')"

And the below screenshot can be seen as it is on the console:

consoleprompt

(Examples)

Test1: Playing with Python files, beautifying .py

OutputImage1

node -e "require('@ryniaubenpm/sed-recusandae-ut').beautifyPython('sample.py')"

Output:

OutputImage12

Test2: Playing with JS files, beautifying .js

OutputImage1

node -e "require('@ryniaubenpm/sed-recusandae-ut').beautifyJS('sample.js')"

Output:

OutputImage12

Test3: Playing with JAVA files, beautifying .java

OutputImage1

node -e "require('@ryniaubenpm/sed-recusandae-ut').beautifyJava('sample.java')"

Output:

OutputImage12

Test4: Playing with JSONs, beautifying JSON Linters

OutputImage1

node -e "require('@ryniaubenpm/sed-recusandae-ut').beautifyJSON('sample.json')"

Output:

OutputImage12

Dependencies

npm install require and npm install js-yaml

Steps for a layman(Playground)

  1. Create a new project:

npm init

This command will create a package.json dependencies for your test file.

// package.json
{
  "name": "@ryniaubenpm/sed-recusandae-ut",
  "version": "1.0.2",
  "description": "Beautify your code, Elevate your projects",
  "main": "index.cjs",
  "type": "commonjs",
  "directories": {
    "lib": "lib"
  },
  "scripts": {
    "test": "node --experimental-modules test.cjs  "
  },
  "funding": {
    "type": "individual",
    "url": "https://github.com/sponsors/ankit142"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/ryniaubenpm/sed-recusandae-ut.git"
  },
  "bugs": {
    "url": "https://github.com/ryniaubenpm/sed-recusandae-ut/issues"
  },
  "homepage": "https://github.com/ryniaubenpm/sed-recusandae-ut#readme",
  "author": "Ankit Guria",
  "license": "MIT",
  "dependencies": {
    "js-yaml": "^4.1.0",
    "require": "^2.4.20"
  }
}
  1. A new file like - "test.cjs" to be created. Here is the sample code:
// test.cjs
const { beautifyJSON, beautifyYAML, beautifyJS, beautifyPython, beautifyJava } = require('./index.cjs');


// Paths to the unformatted example files
const filePathJSON = './test/example.json';
const filePathYAML = './test/example.yaml';
const filePathJS = './test/example.js';
const filePathPython = './test/example.py';
const filePathJava = './test/example.java';

// Test beautify functions
beautifyJSON(filePathJSON);
beautifyYAML(filePathYAML);
beautifyJS(filePathJS);
beautifyPython(filePathPython);
beautifyJava(filePathJava);

console.log('Beautification completed successfully!');
  1. Now run this file, and here you go. node --experimental-modules test.cjs

  2. Play and enjoy more with custom console log statements or something else. The output should be something like this:

OutputImage13

Contributing

Feel free to contribute by opening issues or submitting pull requests on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.