Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 17, 2017
1 parent 0e23a5c commit fdd1962
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 253 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
yarn.lock
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
211 changes: 0 additions & 211 deletions package-lock.json

This file was deleted.

67 changes: 34 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
{
"name": "globals",
"version": "10.4.0",
"description": "Global identifiers from different JavaScript environments",
"license": "MIT",
"repository": "sindresorhus/globals",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "mocha"
},
"files": [
"index.js",
"globals.json"
],
"keywords": [
"globals",
"global",
"identifiers",
"variables",
"vars",
"jshint",
"eslint",
"environments"
],
"devDependencies": {
"mocha": "^3.4.2"
}
"name": "globals",
"version": "10.4.0",
"description": "Global identifiers from different JavaScript environments",
"license": "MIT",
"repository": "sindresorhus/globals",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js",
"globals.json"
],
"keywords": [
"globals",
"global",
"identifiers",
"variables",
"vars",
"jshint",
"eslint",
"environments"
],
"devDependencies": {
"ava": "*",
"xo": "*"
}
}
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ It's just a [JSON file](globals.json), so use it in whatever environment you lik
## Install

```
$ npm install --save globals
$ npm install globals
```


## Usage

```js
var globals = require('globals');
const globals = require('globals');

console.log(globals.browser);
/*
Expand All @@ -38,4 +38,4 @@ Each global is given a value of `true` or `false`. A value of `true` indicates t

## License

MIT © [Sindre Sorhus](http://sindresorhus.com)
MIT © [Sindre Sorhus](https://sindresorhus.com)
11 changes: 5 additions & 6 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
'use strict';
const assert = require('assert');
const globals = require('.');
import test from 'ava';
import m from '.';

it('should return an object of globals', () => {
assert.strictEqual(typeof globals, 'object');
assert(Object.keys(globals).length > 10 && Object.keys(globals).length < 1000);
test(t => {
t.is(typeof m, 'object');
t.true(Object.keys(m).length > 10 && Object.keys(m).length < 1000);
});

0 comments on commit fdd1962

Please sign in to comment.