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

@hutechwebsite/dolore-dolorem-amet-sed

v1.0.0

Published

[![Build Status](https://travis-ci.org/rveciana/@hutechwebsite/dolore-dolorem-amet-sed.svg?branch=master)](https://travis-ci.org/rveciana/@hutechwebsite/dolore-dolorem-amet-sed) [![Coverage Status](https://coveralls.io/repos/github/rveciana/@hutechwebsite

Downloads

3

Maintainers

khaipham1002khaipham1002

Keywords

.envformscheckstarterformxtermpropertyexeces-shimssafenamesbufferszeroES2020schemeprocessInt32ArrayeditoroptimistCSSremovees-abstractreducecolourswftypeoftypesSymbolquerystringexpressassertwafcloudsearchdefinePropertyinstallerespreedebuggerchildflattenfunctionaltrimStartprivatefull-widthbeanstalksetterinvariantboundprotobuflockfileYAMLES2016ajvString.prototype.trimtddframeworkfastcloneprefixArray.prototype.flatMapbluebirdFunction.prototype.namejsdiffwordbreakwhichclass-validatortapstylingjestuuiddirectorylimitedfindtsliblazyArray.prototype.flattenbusyvaluehardlinksdatemochaconfigexecutablees2016flagelbworkereventEmittertapetypescriptimportexportphoneavapushinternal slotqueuewebcensorECMAScript 2015Array.prototype.includeslibphonenumberduplexjshinttypeinresolvesymbolWeakSetrecursiveURLSearchParamscallboundUint16ArraypopmotionmonorepodescriptorsbannerlinksliceserializedragES5Promiseyamlvarsinspectextratesterroutecolumnenumerablenamereducerdeep-cloneidentifiersES2021route53StyleSheetgetterarraypackage managerequalitylinewrap3dcallgetintrinsicbindparserwhatwgicucloudfrontcharsethasOwnPropertyratelimitcolumnsArray.prototype.flatmetadataomitES2023BigInt64ArraymkdirregularcloneRxJScomputed-typesmomentdependenciesfast-cloneqsdebugprotoloadbalancingloadingStreamreuselogbundlingxhrshrinkwrapES2015nodejsi18nopensObjectarktypereadablesharedutiltoStringTagcodesarraysflatMapwraptoobjectopenemrgetPrototypeOfRegExp.prototype.flagswgetasyncchaiES2019writeapolloes2017objectmkdirpes8make dirtermRxsortedFloat32ArraybyteOffsetmakejavascriptassigntasksymlinkECMAScript 7expressionquotechineseaccessortypedwordwrapAsyncIteratorparentArrayBuffercall-bindfixed-widthArraycollectionautoscalingcode pointssyntaxerrorflagsposenodereadablestreamStreamssortreduxawesomesauceenvironmentES7iconvansidropReactiveExtensionslruesiammulti-packageutilitiessqstypeerrorkinesisbrowserlistutilityiteratorprototypesidetraverseargumentselasticachereact animationupbufferbyteLengthspinnershookformfastcopyECMAScript 2016_.extendtypesafeObject.entriesiefsefficienteslintpluginArray.prototype.findLastIndexfunctionpackagesspringvalidatejsxshameslintconfiggraphqlasciisequencecharactersrm -rfmatchAllredirectiteratecompare-0texttestingserializationebsgetloggerxdg-opentypanionslotstartchannelkoreanclientvisualspinnerdeepshimlastlanguageRegExp#flagsdeterministicvestdircreatepropertiescircularmimeInt8Arraywalkpnpm9karmaWeakMapdescriptionrapidjQueryuninstallObject.valuesredactgetoptinternaldataviewqueryairbnbnopewebsitees6deepcloneHyBiECMAScript 2021modulepostcss-pluginmergeTypedArraystablechromeSetWebSocketsentriessomegroupassertsTypeScriptwidthReactiveXReflect.getPrototypeOfarraybufferpathcmdendersearchidconsumeinferencefindLastpostcssreact poseidleinstallfullfast-copyArray.prototype.findLastgdprUint8ClampedArrayparsingmime-dbvaluestoArraystylewaitextensionflatoptiondescriptoroncereactpyyamlECMAScript 5batch[[Prototype]]iterationxdgmapsuperagentglobalextendrm -frjsonpathisConcatSpreadableperformancedependency managerfunctionselectronconcatMapECMAScript 6cjkdeleteperformantpackage$.extendinputbundlersetImmediatedefinepicomatchlimitenvMapfast-deep-clonetsconcatawaitrdsvalidpluginwaapihas-owntoolkitstreams2cssvariablesglobalsstyleguidetostringtagfind-upglacierchromiumworkspace:*consoleJSONec2regular expressionsnegative zerorequestcolortrimLefturlcompilerfileconverterrorjasminecloudtrailcss-in-jsbytepropschemacommandmatchconfigurabledom-testing-librarylintregexpminimalURLs3requirefindLastIndextypedarraysrmtoolsaccessibilityes5ECMAScript 2019es2015eventsmodulesUint32Arrayvalidation0fastifysymlinkstyped arraysesjsdomfigletIteratorECMAScript 3fetchpromiseexeweakmapfunction.lengthECMAScript 2018guidlook-upJSON-Schemascheme-validationcore-jsdiffrgbECMAScript 2023form-validationTypeBoxequalgesturesprivate datautil.inspectfpsjapaneseworkflowes-shim APIpolyfillurlsajaxkeyObject.fromEntriescolors256command-linegroupBytouchESnexttakeUnderscoreString.prototype.matchAllhaseast-asian-widthjsonnumberweaksetforEachthrottleconcurrencyproxysetPrototypeOfrfc4122CSSStyleDeclarationcopycollection.es6awsObject.definePropertymimetypesObject.getPrototypeOfargsframerUint8Arrayoutputdatastructuresetlengthrmdirdatacachereal-timedomecmascriptArray.prototype.containsreact-hook-formassertionES8higher-orderyupstylesargvautoprefixersettingsttyapipositivelookcallbackparentspersistentenvironmentsintrinsicsymbolsmovedynamodblocationhelpergenericsstoragegatewayArrayBuffer.prototype.slicetestformattingescapebrowsernpmvpcmkdirshelpersstringreact-hooksroutinggetOwnPropertyDescriptorviewhooksrobusttc39warningparseimmerio-tstrimRightthreeprotocol-buffersInt16Arrayoffsetcall-boundincludesmruthroatES2022Pushregular expressionfolderjoifromponyfillshebangapptrimstringifierES3sharedarraybufferfile systemloggingECMAScript 2020isdeep-copyeventDispatcherzodownECMAScript 2017runtimepromisesagentcryptodayjsunicodereact-testing-libraryjsstreamsindicatorpackage.jsoncallbindshelleslint-pluginObject.isES2017importnativetoSortedes7regextelephoneredux-toolkitlaunchcoercibletypedarrayhasOwnlistenersFloat64ArrayqueueMicrotaskBigUint64ArraystringifyspawnstatelesssuperstructstructuredClonekeysfiltersyntaxpatchpipemobileRFC-6455l10nbrowserslistsimpledbhttpcoreterminalstreamarthashbddmapreducecloudformationhttpsECMAScript 2022optimizerArray.prototype.filterspectimesameValueZerocloudwatchpreserve-symlinksrangeerrorObservablesprunedataViewfullwidthObject.assignargparsenegativeprogressreadserializeremit__proto__es2018immutabledeepcopyargumentmatchesendpointstyled-componentstrimEndsnsopenerdotenvcontainsES6curlWebSocketa11yeverystdlibanimationcliMicrosoft

Readme

Build Status Coverage Status

@hutechwebsite/dolore-dolorem-amet-sed

Pure Javascript alternative to getPointAtLength(t) and getTotalLength() functions. Works with Canvas objects and when Node

JavaScript can access to path elements properties in a browser, such as its length and the point at a given length. Unfortunately, this can't be achieved using a Canvas element or when working with node. This library can be used to replace this need. It has no dependencies on other JavaScript libraries.

INSTALL

To use with npm, just type

npm install @hutechwebsite/dolore-dolorem-amet-sed

You can use it int he browser directly by including @hutechwebsite/dolore-dolorem-amet-sed.min.js from the dist directory

<script src="@hutechwebsite/dolore-dolorem-amet-sed.min.js"></script>

USAGE

The available methods are:

const path = require("@hutechwebsite/dolore-dolorem-amet-sed");
const properties = new path.svgPathProperties("M0,100 Q50,-50 100,100 T200,100");
const length = properties.getTotalLength();
const point = properties.getPointAtLength(200);
const tangent = properties.getTangentAtLength(200);
const allProperties = properties.getPropertiesAtLength(200);
const parts = properties.getParts();

Node:

const path = require("@hutechwebsite/dolore-dolorem-amet-sed");
const properties = new path.svgPathProperties("M0,100 Q50,-50 100,100 T200,100");

Including it from an import:

import { svgPathProperties } from "@hutechwebsite/dolore-dolorem-amet-sed";
const properties = new svgPathProperties("M0,100 Q50,-50 100,100 T200,100");

Including the script in the browser

Once the script tag has been included,

const properties = new svgPathProperties.svgPathProperties("M0,100 Q50,-50 100,100 T200,100");

Using new

Since svgPathProperties is a class, using new is the correct way to initilize it. For backwards compatibility reasons, the object can be get without it:

const properties = svgPathProperties("M0,100 Q50,-50 100,100 T200,100");

Some usage examples

Typescript

The TypeScript declaration file is available too, since version 0.5.0 From version 1.0.0, the whole library has been rewritten using TypeScript, and the types are auto-generated.

CREDITS

Some parts of the code are taken from other libraries or questions at StackOverflow:

For Bézier curves:

  • http://bl.ocks.org/hnakamur/e7efd0602bfc15f66fc5, https://gist.github.com/tunght13488/6744e77c242cc7a94859
  • http://stackoverflow.com/questions/11854907/calculate-the-length-of-a-segment-of-a-quadratic-bezier
  • http://pomax.github.io/bezierinfo
  • Arc elements calculation: https://github.com/MadLittleMods/svg-curve-lib/tree/f07d6008a673816f4cb74a3269164b430c3a95cb

For path parsing:

  • https://github.com/jkroso/parse-svg-path