open-index/open-npm huggingface dataset:
npm package: @philotheephilix/phone-number-circle-locator
Description: Look up Indian mobile phone numbers to find the telecom circle and operator
Latest version: 2.1.0

# phone-circle-locator

Look up Indian mobile phone numbers to find the **telecom circle** (region) and **operator**.

Covers 1,702 four-digit prefixes across all major Indian carriers including Airtel, Reliance Jio, Vodafone Idea, and BSNL.

## Installation

```bash
npm install phone-circle-locator
```

## Usage

### JavaScript

```js
const { lookup, getCircle, getOperator } = require("phone-circle-locator");

const result = lookup("+91 9900 123456");
console.log(result);
// {
//   phone: "9900123456",
//   prefix: "9900",
//   operator: "Airtel",
//   circle: "Karnataka"
// }

getCircle("9910123456");    // "Delhi"
getOperator("9910123456");  // "Airtel"
```

### TypeScript

```ts
import { lookup, getCircle, getOperator, LookupResult } from "phone-circle-locator";

const result: LookupResult | null = lookup("+91 9900 123456");

if (result) {
  console.log(result.circle);    // "Karnataka"
  console.log(result.operator);  // "Airtel"
}
```

## API

### `lookup(phone: string | number): LookupResult | null`

Returns the full lookup result for a phone number, or `null` if the prefix is not found.

**Parameters:**
- `phone` - An Indian mobile number as a string or number

**Returns:** `LookupResult | null`

```ts
interface LookupResult {
  phone: string;     // Normalized 10-digit number
  prefix: string;    // 4-digit prefix used for lookup
  operator: string;  // Telecom operator name
  circle: string;    // Telecom circle (region)
}
```

### `getCircle(phone: string | number): string | null`

Returns just the telecom circle name, or `null` if not found.

```js
getCircle("9900123456");  // "Karnataka"
getCircle("9910123456");  // "Delhi"
```

### `getOperator(phone: string | number): string | null`

Returns just the operator name, or `null` if not found.

```js
getOperator("9900123456");  // "Airtel"
getOperator("9920123456");  // "Vodafone Idea"
getOperator("9414098765");  // "BSNL"
```

## Input Formats

The following phone number formats are all supported:

| Format | Example |
|---|---|
| 10-digit | `9900123456` |
| With +91 | `+919900123456` |
| With 0 prefix | `09900123456` |
| With spaces | `+91 9900 123456` |
| With dashes | `9900-123456` |
| With parentheses | `(9900) 123456` |
| As number | `9900123456` |

## Supported Operators

| Operator |
|---|
| Airtel |
| Reliance Jio |
| Vodafone Idea |
| BSNL |
| Aircel |

## Telecom Circles

Andhra Pradesh, Assam, Bihar & Jharkhand, Delhi, Gujarat, Haryana, Himachal Pradesh, Jammu & Kashmir, Karnataka, Kerala, Madhya Pradesh & Chhattisgarh, Maharashtra & Goa, North East, Odisha, Punjab, Rajasthan, Tamil Nadu, UP East, UP West & Uttarakhand, Uttar Pradesh, West Bengal

## Development

```bash
# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test
```

## Data Source

Phone prefix data sourced from [in-mob-prefix](https://github.com/hstsethi/in-mob-prefix) by [@hstsethi](https://github.com/hstsethi).

## License

MIT
npm package: @philpl/buble
Description: The blazing fast, batteries-included ES2015 compiler
Author: Rich Harris
Latest version: 0.19.7

# Bublé

## The blazing fast, batteries-included ES2015 compiler

* Try it out at [buble.surge.sh](https://buble.surge.sh)
* Read the docs at [buble.surge.sh/guide](https://buble.surge.sh/guide)


## Quickstart

Via the command line...

```bash
npm install -g buble
buble input.js > output.js
```

...or via the JavaScript API:

```js
var buble = require( 'buble' );
var result = buble.transform( source ); // { code: ..., map: ... }
```


## License

MIT
npm package: @philpl/gatsby-theme-mdx-deck
Description: This is a modified version of [`gatsby-theme-mdx-deck`](https://github.com/jxnblk/mdx-deck/tree/master/packages/gatsby-theme). It makes a couple of small changes on top of the default theme:
Latest version: 3.2.0

# `@philpl/gatsby-theme-mdx-deck`

This is a modified version of [`gatsby-theme-mdx-deck`](https://github.com/jxnblk/mdx-deck/tree/master/packages/gatsby-theme). It makes a couple of small changes on top of the default theme:

- Fix `split-slides.js` for some custom JSX
- Add support for inline SVG
- Remove `print` support
- Add `theme.size.{width.height}` to replace `theme.aspectRatio`

The `theme.size` values are used to create fixed size slides. Every
slide will have a fixed pixel size of that exact value (by default `1366x768px`)
and will be scaled to fit in the current viewport. This makes it easier to
position and scale things consistently on each slide.

Add MDX Deck presentations to any Gatsby site

```sh
npm i gatsby-theme-mdx-deck
```

```js
// gatsby-config.js
module.exports = {
  plugins: [
    'gatsby-theme-mdx-deck',
  ]
}
```

Add one or more MDX presentation files to the `decks/` directory.
The filenames will be used for creating routes to each deck.

Example `decks/hello.mdx`

```mdx
# Hello!

---

## Beep boop
```

## Layouts

Individual slides can be wrapped with layout components,
which work similarly to slide templates found in other presentation software.

Example `decks/hello.mdx`

```mdx
import Layout from './my-layout'

<Layout>

# Hello

</Layout>

---

## Beep boop
```

## Configuration Options

The Gatsby theme accepts the following options.

```js
// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: 'gatsby-theme-mdx-deck',
      options: {
        // enable or disable gatsby-plugin-mdx
        mdx: false,
        // source directory
        contentPath: 'decks',
        // base path for routes generate by this theme
        basePath: ''
      }
    }
  ]
}
```

MIT License
npm package: @philpl/graphql-transform-schema
Description: Transform, filter & alias resolvers of a GraphQL schema (FORK)
Author: Johannes Schickling
Latest version: 0.3.0-0

# graphql-transform-schema [![Build Status](https://travis-ci.org/graphcool/graphql-transform-schema.svg?branch=master)](https://travis-ci.org/graphcool/graphql-transform-schema) [![npm version](https://badge.fury.io/js/graphql-transform-schema.svg)](https://badge.fury.io/js/graphql-transform-schema) [![Greenkeeper badge](https://badges.greenkeeper.io/graphcool/graphql-transform-schema.svg)](https://greenkeeper.io/)

Transform, filter & alias resolvers of a GraphQL schema

## Install

```sh
yarn add graphql-transform-schema
```

## Usage

By default `transformSchema` passes through all queries/mutations. ([Open Demo](https://example-rakllksfme.now.sh/graphiql))

```ts
import { transformSchema } from 'graphql-transform-schema'

// needed for remote schemas
import { createApolloFetch } from 'apollo-fetch'
import { makeRemoteExecutableSchema } from 'graphql-tools'

const schema = await makeRemoteExecutableSchema(createApolloFetch({
  uri: 'https://api.graph.cool/simple/v1/swapi',
}))

// hide every query/mutation except the `Starship` and `allStarships` query
const transformedSchema = transformSchema(schema, {
  Query: {
     '*': false,
     Starship: true,
     allStarships: true,
  }
})
```

### API

```ts
interface Rules {
  [fieldName: string]: boolean | Function
}

function transformSchema(schema: GraphQLSchema, rules: Rules): GraphQLSchema
```

### Examples

#### Remove all `createX` and `deleteX` mutations

```ts
const transformedSchema = transformSchema(schema, {
  Mutation: {
    'create*': false,
    'delete*': false,
  }
})
```

#### Overwrite resolved data

```ts
const typeDefs = `
  type Query {
    hello: String!
  }

  type Mutation {
    alexaHello(name: String!): String!
  }
`
const resolvers = {
  Query: {
    hello: () => 'Hello world',
  },
  Mutation: {
    alexaHello: (_, { name }) => `Alexa: Hello world, ${name}`,
  },
}
const schema = makeExecutableSchema({ typeDefs, resolvers })

const transformedSchema = transformSchema(schema, {
  alexaHello: ({ args, resolve }) => resolve(args).replace('Bob', 'Alice'),
})
```

#### Overwrite arguments

```ts
const typeDefs = `
  type Query {
    hello: String!
  }

  type Mutation {
    alexaHello(name: String!): String!
  }
`
const resolvers = {
  Query: {
    hello: () => 'Hello world',
  },
  Mutation: {
    alexaHello: (_, { name }) => `Alexa: Hello world, ${name}`,
  },
}
const schema = makeExecutableSchema({ typeDefs, resolvers })

const transformedSchema = transformSchema(schema, {
  alexaHello: ({ args, resolve }) => resolve({ name: 'John' }),
})
```

## Next steps

- [ ] Alias/rename types and fields
- [ ] Transform field arguments
- [ ] Compose new queries/mutations out of existing queries/mutations

## Help & Community [![Slack Status](https://slack.graph.cool/badge.svg)](https://slack.graph.cool)

Join our [Slack community](http://slack.graph.cool/) if you run into issues or have questions. We love talking to you!

![](http://i.imgur.com/5RHR6Ku.png)