Code Monkey home page Code Monkey logo

core-util-is's Introduction

core-util-is

The util.is* functions introduced in Node v0.12.

core-util-is's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

core-util-is's Issues

Remove node-specific reference to Buffer

exports.isBuffer = Buffer.isBuffer;

This references to Buffer makes this library incompatible in the browser because Buffer is part of the node API and is not available in the browser. Given that this library is imported by several other libraries that aim to make use of it in the browser, would you ever consider removing this reference?

Later versions of Angular (6+) have tightened their compile-time requirements to alert node-specific references like this which is why these issues are being surfaced now.

Add API documentation

It looks like the API has been "Deprecated since: v4.0.0" from Node.

A list of all the exported functions would be great for a start.
I'd be happy to help you with this.

Thanks.

License type?

Hello,

Could you please specify what is the license type?

Thanks,

-- Tito

Reduce the size of the npm package by limiting the included files

Looks like the files property (https://docs.npmjs.com/files/package.json#files) is not used in package.json to specify the included files, nor is the .npmignore file (https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package) is being used for blacklisting unwanted files, for the package published to npm.

Would you consider adding either the files property or the .npmignore file, so that the resulting package file would have smaller size?

The current size can be seen when executing the command npm pack (https://docs.npmjs.com/cli/pack).

This issue was create via tawata

Buffer is not defined

I get the following in an angular v8 application. This was not in issue in earlier release (v8-)
Any ideas?

Uncaught ReferenceError: Buffer is not defined
    at Object../node_modules/core-util-is/lib/util.js (util.js:103)
    at __webpack_require__ (bootstrap:79)
    at Object../node_modules/comment-json/src/array.js (array.js:2)
    at __webpack_require__ (bootstrap:79)
    at Object../node_modules/comment-json/src/parse.js (parse.js:14)
    at __webpack_require__ (bootstrap:79)
    at Object../node_modules/comment-json/src/index.js (index.js:1)
    at __webpack_require__ (bootstrap:79)
    at Module../src/app/services/customer.service.ts (customer-tag-type.service.ts:9)
    at __webpack_require__ (bootstrap:79)

Error to install by npm

Hi,

I got this error when i try to intall this module by npm install.

npm ERR! Error: ENOENT, open '/Users/mitsuishihidemi/idea/artifacts/ui_war_exploded/v3/node_modules/core-util-is/package.json'

can someone help me?

thanks

React Native support?

@isaacs I'm using cheerio in React Native, which depends on this package. Unfortunately it throws an error because Buffer is undefined until the entry point index.js of the app (via feross/buffer), at which point this module has already been imported.

Would you be interested in a PR to support this use case? The relevant change is fairly simple: mjmasn@a559d4e

I published a scoped package with the fix but ideally would be able to use the official package. Any thoughts?

Error while installing

There is a log from appveyor:

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! path C:\Users\appveyor\AppData\Roaming\npm-cache\core-util-is\1.0.1\package\package.json
npm ERR! code EPERM
npm ERR! errno -4048

npm ERR! Error: EPERM, rename 'C:\Users\appveyor\AppData\Roaming\npm-cache\core-util-is\1.0.1\package\package.json'
npm ERR!     at Error (native)
npm ERR!  { [Error: EPERM, rename 'C:\Users\appveyor\AppData\Roaming\npm-cache\core-util-is\1.0.1\package\package.json']
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   path: 'C:\\Users\\appveyor\\AppData\\Roaming\\npm-cache\\core-util-is\\1.0.1\\package\\package.json',
npm ERR!   parent: 'readable-stream' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\projects\tars\npm-debug.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.