npm-package

Npm is a package manager for JavaScript, included with Node.js. As a package manager, npm makes it easy for developers to share and reuse code.
Here are 4,715 public repositories matching this topic...
-
Updated
Sep 11, 2021 - TypeScript
For some reason Amazon REST api's require the content-type to be set to "application/x-amz-json-1.1" instead of the standard "application/json"
Currently the content-type header is set automatically for json data overriding any headers passed in to the request.
It would be useful to first check if the header is set before overriding it:
if (!this.request.headers.set('content-type')) {
Port tests from Got
Describe the bug
When using an image URL like https://bundlephobia.com/api/stats-image?name=convert&version=1.0.1&wide=true
for a version that isn't published the image returns a placeholder, but the placeholder gets cached. After the version is published the placeholder image stays cached.
To Reproduce
Visit an image URL for a version that didn't exist at image generation time.
-
Updated
Jun 16, 2021 - JavaScript
It's easy to forget the .d
and make it .ts
.
Should be a Node.js script that is run when testing: https://github.com/sindresorhus/type-fest/blob/b7e1c26c36f28a7a36f7f1e9d5fb7c07c438619a/package.json#L17
-
Updated
Aug 19, 2021 - JavaScript
-
Updated
Jun 19, 2020 - JavaScript
-
Updated
Sep 2, 2021 - JavaScript
-
Updated
Apr 6, 2021 - JavaScript
-
Updated
Aug 13, 2021 - TypeScript
Fix the browsers!
The goal of this project is to make itself obsolete. We should try to get browsers to fix their own styles so we don't have to work around them indefinitely.
If you want to help out:
- Pick a style in
modern-normalize.css
- Go to the relevant browser issue trackers ([Chrome](http://dev.chromium.org/for-test
-
Updated
Jan 23, 2021 - JavaScript
-
Updated
Sep 7, 2021 - TypeScript
Using the latest release 2.2.8, the typescript definition file in the package is defined like
import Hashids from '../lib/hashids'
export = Hashids
with that import to the source code. Unfortunately, this is less robust than building Typescript and including the definitions only, as the success of the build depends on the user having a compatible Typescript configuration.
Fo
-
Updated
Sep 5, 2021 - JavaScript
-
Updated
Jan 28, 2019 - JavaScript
-
Updated
Sep 7, 2021 - JavaScript
-
Updated
Jun 13, 2021 - JavaScript
I use Array<Uint8Array>
as a value. But The uint8Array is treated as string.
function arrayString(val) {
var result = '{'
for (var i = 0; i < val.length; i++) {
if (i > 0) {
result = result + ','
}
if (val[i] === null || typeof val[i] === 'undefined') {
result = result + 'NULL'
} else if (Array.isArray(val[i])) {
result = result + arrayStr
-
Updated
May 16, 2021 - JavaScript
For popular things that makes sense. Suggestions welcome, but I'm not going to add more than maybe 30. So make it worth it.
Don't do a PR. I'll add them all at once when we've decided on what to include.
-
Updated
Mar 23, 2018 - JavaScript
-
Updated
Apr 25, 2021 - JavaScript
-
Updated
Aug 27, 2021 - TypeScript
-
Updated
Aug 29, 2021 - JavaScript
-
Updated
Sep 4, 2021
-
Updated
Jun 10, 2021 - JavaScript
Currently, InfiniteScroll
adds the scroll listeners only when mounting. That means that if the scroll target (whether it's specified or default to window
) changes, the component won't request a new page load if there's some scroll in the new target.
I guess the solution is to check in componentWillReceiveProps
if there's some change in target, and if it's the case, remove the current lis
Created by Isaac Z. Schlueter
Released January 12, 2010
- Organization
- npm
- Website
- www.npmjs.com
- Wikipedia
- Wikipedia
Is your feature request related to a problem? Please describe.